summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-02-12 18:20:29 +0100
committerwm4 <wm4@nowhere>2015-02-12 21:18:12 +0100
commitb8de478f51fdd9982482f8e9f3502a5e0d97f31c (patch)
treefb3621bb2ca0718a0f8feb5fda2d592248d8d8c9 /osdep
parente920a00ebad645cd14d341f4dabd4c5c077d2e0c (diff)
downloadmpv-b8de478f51fdd9982482f8e9f3502a5e0d97f31c.tar.bz2
mpv-b8de478f51fdd9982482f8e9f3502a5e0d97f31c.tar.xz
osx: move cocoa specific call out of common code
This is almost equivalent, and gets rid of the ifdef.
Diffstat (limited to 'osdep')
-rw-r--r--osdep/macosx_application.m2
1 files changed, 2 insertions, 0 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index fa5058fd1d..008622f3ea 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -274,6 +274,8 @@ static void *playback_thread(void *ctx_obj)
@autoreleasepool {
struct playback_thread_ctx *ctx = (struct playback_thread_ctx*) ctx_obj;
ctx->mpv_main(*ctx->argc, *ctx->argv);
+ terminate_cocoa_application();
+ // normally never reached
cocoa_stop_runloop();
pthread_exit(NULL);
}