summaryrefslogtreecommitdiffstats
path: root/osdep/macosx_finder_args.m
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2012-08-16 22:32:26 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2012-08-16 22:32:26 +0200
commit39e28570f1d995a04a1e5f7ad283a12906930296 (patch)
treef04efbe81dcde7771b499edc77a180b6f5d1d3b0 /osdep/macosx_finder_args.m
parent87c375e6f25a1080bc628aec13f9d683ebc08b72 (diff)
downloadmpv-39e28570f1d995a04a1e5f7ad283a12906930296.tar.bz2
mpv-39e28570f1d995a04a1e5f7ad283a12906930296.tar.xz
macosx_finder_args: make work with recent changes
Diffstat (limited to 'osdep/macosx_finder_args.m')
-rw-r--r--osdep/macosx_finder_args.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/osdep/macosx_finder_args.m b/osdep/macosx_finder_args.m
index 00b7ccfb1d..fcdef4b494 100644
--- a/osdep/macosx_finder_args.m
+++ b/osdep/macosx_finder_args.m
@@ -75,12 +75,12 @@ bool psn_matches_current_process(char *psn_arg_to_check)
return strcmp(psn_arg, psn_arg_to_check) == 0;
}
-bool *macosx_finder_args(m_config_t *config, struct playlist *pl_files,
+bool macosx_finder_args(m_config_t *config, struct playlist *pl_files,
int argc, char **argv)
{
- if (argc==2 && psn_matches_current_process(argv[1])) {
+ if (argc==1 && psn_matches_current_process(argv[0])) {
macosx_redirect_output_to_logfile("mplayer2");
- m_config_set_option0(config, "quiet", NULL, false);
+ m_config_set_option0(config, "quiet", NULL);
macosx_wait_fileopen_events();
}