diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-07-27 20:59:44 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-29 05:02:05 +0300 |
commit | 507fa7e2c23623dcbecf20a392ee025002c83866 (patch) | |
tree | 8bb5f2331af88dca98cfc799ac6ca45b09d775fe /osdep | |
parent | 0958620591375b41a8d21dd2a3501e1c9e5e9cba (diff) | |
download | mpv-507fa7e2c23623dcbecf20a392ee025002c83866.tar.bz2 mpv-507fa7e2c23623dcbecf20a392ee025002c83866.tar.xz |
options: indicate ambiguous option parameters explicitly
Command line options like "-foo xyz" are ambiguous: "xyz" may be a
parameter to the option "foo" or an unrelated argument. Instead of
relying on the struct m_config mode field (commandline/file) pass
parameters to specify ambiguous mode explicitly. Meant for "--foo"
options which are never ambiguous on command line either.
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/macosx_finder_args.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/macosx_finder_args.c b/osdep/macosx_finder_args.c index baf11101c7..c3b5f99672 100644 --- a/osdep/macosx_finder_args.c +++ b/osdep/macosx_finder_args.c @@ -118,7 +118,7 @@ char myPsnStr[5+10+1+10+1]; myPsnStr[5+10+1+10]=0; if((argc==2) && !strcmp(myPsnStr, argv[1])) { - m_config_set_option(config, "quiet", NULL); + m_config_set_option(config, "quiet", NULL, false); InitCursor(); AEInstallEventHandler(kCoreEventClass, kAEOpenDocuments, NewAEEventHandlerUPP(AppleEventHandlerProc), 0, FALSE); RunApplicationEventLoop(); |