diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-08-04 08:39:30 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-08-06 09:31:59 +0200 |
commit | c8cf864bfff3e56c45f129e9d825cb41d54a647e (patch) | |
tree | 571b84771a90065f0317bbdfb2776a6157e484ca /player/main_fn.c | |
parent | b8a431c892080bd74b7310341122dc2bd222f292 (diff) | |
download | mpv-c8cf864bfff3e56c45f129e9d825cb41d54a647e.tar.bz2 mpv-c8cf864bfff3e56c45f129e9d825cb41d54a647e.tar.xz |
cocoa: fix build by using the correct HAVE_* macro
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.
Diffstat (limited to 'player/main_fn.c')
-rw-r--r-- | player/main_fn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/player/main_fn.c b/player/main_fn.c index 87e1681987..23a047b4dc 100644 --- a/player/main_fn.c +++ b/player/main_fn.c @@ -1,13 +1,13 @@ #include "config.h" #include "core.h" -#if HAVE_COCOA +#if HAVE_COCOA_APPLICATION #include "osdep/macosx_application.h" #endif int main(int argc, char *argv[]) { -#if HAVE_COCOA +#if HAVE_COCOA_APPLICATION return cocoa_main(mpv_main, argc, argv); #else return mpv_main(argc, argv); |