summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--osdep/macosx_application.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m
index 818d8df379..ac1f4863da 100644
--- a/osdep/macosx_application.m
+++ b/osdep/macosx_application.m
@@ -366,7 +366,10 @@ int cocoa_main(mpv_main_fn mpv_main, int argc, char *argv[])
ctx.argv = &argv;
if (bundle_started_from_finder(argc, argv)) {
- argc = 1; // clears out -psn argument is present
+ if (argc > 1) {
+ argc = 1; // clears out -psn argument if present
+ argv[1] = NULL;
+ }
macosx_redirect_output_to_logfile("mpv");
init_cocoa_application(true);
} else {