1
mirror of https://github.com/mpv-player/mpv synced 2024-09-28 17:52:52 +02:00

mplayer: potentially fix main() return value

The main() function is special, and omitting the return statement would
make it always return 0. And also, mpv_main() actually never returns, it
calls exit() through exit_player() instead. But change it anyway,
because it looks misleading.
This commit is contained in:
wm4 2013-05-15 15:48:40 +02:00
parent db69e0edd4
commit a32cc6fcb2

View File

@ -4773,9 +4773,9 @@ static int mpv_main(int argc, char *argv[])
int main(int argc, char *argv[])
{
#ifdef CONFIG_COCOA
cocoa_main(mpv_main, argc, argv);
return cocoa_main(mpv_main, argc, argv);
#else
mpv_main(argc, argv);
return mpv_main(argc, argv);
#endif
}