diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-09-13 19:55:15 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-09-13 22:04:47 +0200 |
commit | 1b8affee0e901b9a3ad43bfbf0c1e205068924bd (patch) | |
tree | a041f58305dda2c0a2c6453107ee9d6d755aca12 | |
parent | 0f1a871d65f74ab250d3fb07d6d8062a3bfa1e89 (diff) | |
download | mpv-1b8affee0e901b9a3ad43bfbf0c1e205068924bd.tar.bz2 mpv-1b8affee0e901b9a3ad43bfbf0c1e205068924bd.tar.xz |
macosx_application: fix file opening on 10.9 (for real this time)
I did commit 86c05655d by thinking `mpv` already removed the `mpv` from
argc/argv. It actually is still there, so the argc must be 1 to check for no
arguments.
Thanks to @Nyx0uf for pointing out the bug and for testing on 10.9!
-rw-r--r-- | osdep/macosx_application.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/macosx_application.m b/osdep/macosx_application.m index ab1dcf4483..11dc6963f2 100644 --- a/osdep/macosx_application.m +++ b/osdep/macosx_application.m @@ -436,7 +436,7 @@ static bool bundle_started_from_finder(int argc, char **argv) { bool bundle_detected = [[NSBundle mainBundle] bundleIdentifier]; bool pre_mavericks_args = argc==2 && psn_matches_current_process(argv[1]); - bool post_mavericks_args = argc==0; + bool post_mavericks_args = argc==1; return bundle_detected && (pre_mavericks_args || post_mavericks_args); } |