]> git.sesse.net Git - vlc/blobdiff - src/libvlc.c
--full-help: do not alter the configuration, only variables
[vlc] / src / libvlc.c
index e8858f100e602236d4ca8477b30c43b87c2cfb9a..536229c8b05a826ccf25b196095c7e500bd184da 100644 (file)
@@ -474,8 +474,10 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     /* Check for full help option */
     else if( var_InheritBool( p_libvlc, "full-help" ) )
     {
-        config_PutInt( p_libvlc, "advanced", 1);
-        config_PutInt( p_libvlc, "help-verbose", 1);
+        var_Create( p_libvlc, "advanced", VLC_VAR_BOOL );
+        var_SetBool( p_libvlc, "advanced", true );
+        var_Create( p_libvlc, "help-verbose", VLC_VAR_BOOL );
+        var_SetBool( p_libvlc, "help-verbose", true );
         Help( p_libvlc, "full-help" );
         b_exit = true;
         i_ret = VLC_EEXITSUCCESS;