From: Antoine Cellerier Date: Fri, 17 Jun 2005 12:36:47 +0000 (+0000) Subject: all options enabled by "true" or "yes" can now also be enabled by using "1". X-Git-Tag: 0.8.2~39 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=eb18d00c6c9040d50bd9f28dd965ef5f3c282a7d;p=vlc all options enabled by "true" or "yes" can now also be enabled by using "1". fixes #211 --- diff --git a/mozilla/vlcshell.cpp b/mozilla/vlcshell.cpp index fcf2c63515..85ea49fb58 100644 --- a/mozilla/vlcshell.cpp +++ b/mozilla/vlcshell.cpp @@ -336,7 +336,7 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, { if( !strcmp( argn[i], "loop" ) ) { - if( !strcmp( argv[i], "yes" ) ) + if( !strcmp( argv[i], "1" ) || !strcmp( argv[i], "yes" ) ) { value.b_bool = VLC_TRUE; VLC_VariableSet( p_plugin->i_vlc, "conf::loop", value ); @@ -387,7 +387,7 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, } else if( !strcmp( argn[i], "autoplay" ) ) { - if( !strcmp( argv[i], "yes" ) ) + if( !strcmp( argv[i], "1" ) || !strcmp( argv[i], "yes" ) ) { p_plugin->b_autoplay = 1; } @@ -411,7 +411,7 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, #if USE_LIBVLC else if( !strcmp( argn[i], "fullscreen" ) ) { - if( !strcmp( argv[i], "yes" ) ) + if( !strcmp( argv[i], "1" ) || !strcmp( argv[i], "yes" ) ) { value.b_bool = VLC_TRUE; VLC_VariableSet( p_plugin->i_vlc, "conf::fullscreen", value ); @@ -419,7 +419,7 @@ NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, } else if( !strcmp( argn[i], "mute" ) ) { - if( !strcmp( argv[i], "yes" ) ) + if( !strcmp( argv[i], "1" ) || !strcmp( argv[i], "yes" ) ) { VLC_VolumeMute( p_plugin->i_vlc ); }