summaryrefslogtreecommitdiffstats
path: root/osdep/main-fn-mac.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 01:13:14 +0000
commit5a3b54c78ce63d899f76dbb3db72e4894b40bd53 (patch)
tree50693d13eeefc4d683bdf5417f0861b0ef274a0c /osdep/main-fn-mac.c
parentAdding debian version 0.37.0-1. (diff)
downloadmpv-5a3b54c78ce63d899f76dbb3db72e4894b40bd53.tar.xz
mpv-5a3b54c78ce63d899f76dbb3db72e4894b40bd53.zip
Merging upstream version 0.38.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'osdep/main-fn-mac.c')
-rw-r--r--osdep/main-fn-mac.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/osdep/main-fn-mac.c b/osdep/main-fn-mac.c
new file mode 100644
index 0000000..1406100
--- /dev/null
+++ b/osdep/main-fn-mac.c
@@ -0,0 +1,7 @@
+#include "osdep/mac/app_bridge.h"
+
+// Cocoa absolutely requires creating the NSApplication singleton and running it on the main thread.
+int main(int argc, char *argv[])
+{
+ return cocoa_main(argc, argv);
+}