diff parser-mpcmd.c @ 13909:07dadc3066f3

add support for macosx finder argument support (let you bundle mplayer to be a finder compliant .app) patch by Chris Roccati <roccati@pobox.com>
author nplourde
date Wed, 10 Nov 2004 16:43:40 +0000
parents fba780800efe
children f845791e2823
line wrap: on
line diff
--- a/parser-mpcmd.c	Wed Nov 10 01:45:52 2004 +0000
+++ b/parser-mpcmd.c	Wed Nov 10 16:43:40 2004 +0000
@@ -65,6 +65,9 @@
   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 @@
 
   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;