diff options
author | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-11-10 16:43:40 +0000 |
---|---|---|
committer | nplourde <nplourde@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2004-11-10 16:43:40 +0000 |
commit | 2cc1ec3ea499f8d959c1cbafcdb66b7915e91029 (patch) | |
tree | ef71647433844f756743b4270fa8d355ac11ebdf /parser-mpcmd.c | |
parent | 20460bc1b9c1aa1719ea53c1b2e79c0c205d1c74 (diff) | |
download | mpv-2cc1ec3ea499f8d959c1cbafcdb66b7915e91029.tar.bz2 mpv-2cc1ec3ea499f8d959c1cbafcdb66b7915e91029.tar.xz |
add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13910 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'parser-mpcmd.c')
-rw-r--r-- | parser-mpcmd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/parser-mpcmd.c b/parser-mpcmd.c index 1864ae7686..55697d901c 100644 --- a/parser-mpcmd.c +++ b/parser-mpcmd.c @@ -65,6 +65,9 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) char entbuf[10]; int no_more_opts = 0; play_tree_t *last_parent, *last_entry = NULL, *root; +#ifdef MACOSX_FINDER_SUPPORT + extern play_tree_t *macosx_finder_args(m_config_t *, int , char **); +#endif #ifdef MP_DEBUG assert(config != NULL); @@ -74,6 +77,12 @@ m_config_parse_mp_command_line(m_config_t *config, int argc, char **argv) config->mode = M_COMMAND_LINE; mode = GLOBAL; +#ifdef MACOSX_FINDER_SUPPORT + root=macosx_finder_args(config, argc, argv); + if(root) + return root; +#endif + last_parent = root = play_tree_new(); /* in order to work recursion detection properly in parse_config_file */ ++recursion_depth; |