From 220ce67be850cc30eae15e7104023172bfee6bcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 23 Jan 2010 20:25:57 +0200 Subject: [PATCH] --full-help: do not alter the configuration, only variables --- src/libvlc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libvlc.c b/src/libvlc.c index e8858f100e..536229c8b0 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; -- 2.39.5