mirror of
https://github.com/mpv-player/mpv
synced 2024-12-20 22:02:59 +00:00
c8cf864bff
This builds but both the libmpv example and the cplayer block infinitely when building libmpv. That's because we wait inifinitely in `dispatch_sync` as there's no event loop in the main thread that allows for libdispatch to work.. Whiel we are at it, we should probably investigate how to use mp_dispatch instead since it is a little lower level and could give us higher control in building and event loop.
16 lines
267 B
C
16 lines
267 B
C
#include "config.h"
|
|
#include "core.h"
|
|
|
|
#if HAVE_COCOA_APPLICATION
|
|
#include "osdep/macosx_application.h"
|
|
#endif
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
#if HAVE_COCOA_APPLICATION
|
|
return cocoa_main(mpv_main, argc, argv);
|
|
#else
|
|
return mpv_main(argc, argv);
|
|
#endif
|
|
}
|