[vlc-devel] commit: --full-help: do not alter the configuration, only variables ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat Jan 23 19:28:54 CET 2010


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jan 23 20:25:57 2010 +0200| [220ce67be850cc30eae15e7104023172bfee6bcf] | committer: Rémi Denis-Courmont 

--full-help: do not alter the configuration, only variables

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=220ce67be850cc30eae15e7104023172bfee6bcf
---

 src/libvlc.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index e8858f1..536229c 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -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;




More information about the vlc-devel mailing list