[vlc-devel] commit: Set the libvlc internal verbosity (Christophe Mutricy )

git version control git at videolan.org
Tue Feb 17 01:26:01 CET 2009


vlc | branch: master | Christophe Mutricy <xtophe at videolan.org> | Tue Feb 17 00:10:39 2009 +0000| [cf759926c989565a5dbac9a7110b821afc2aec64] | committer: Christophe Mutricy 

Set the libvlc internal verbosity

When set from the config file

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

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

diff --git a/src/libvlc.c b/src/libvlc.c
index 9456bb6..e138c32 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -443,6 +443,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
     if( !config_GetInt( p_libvlc, "ignore-config" ) )
         config_LoadConfigFile( p_libvlc, "main" );
     config_LoadCmdLine( p_libvlc, &i_argc, ppsz_argv, true );
+    priv->i_verbose = config_GetInt( p_libvlc, "verbose" );
 
     /* Check if the user specified a custom language */
     psz_language = config_GetPsz( p_libvlc, "language" );
@@ -459,6 +460,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         if( !config_GetInt( p_libvlc, "ignore-config" ) )
             config_LoadConfigFile( p_libvlc, "main" );
         config_LoadCmdLine( p_libvlc, &i_argc, ppsz_argv, true );
+        priv->i_verbose = config_GetInt( p_libvlc, "verbose" );
     }
     free( psz_language );
 # endif
@@ -571,6 +573,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         module_EndBank( p_libvlc );
         return VLC_EGENERIC;
     }
+    priv->i_verbose = config_GetInt( p_libvlc, "verbose" );
 
     /*
      * System specific configuration
@@ -727,7 +730,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
         free( psz_verbose_objects );
     }
 
-    /* Last change to set the verbosity. Once we start interfaces and other
+    /* Last chance to set the verbosity. Once we start interfaces and other
      * threads, verbosity becomes read-only. */
     var_Create( p_libvlc, "verbose", VLC_VAR_INTEGER | VLC_VAR_DOINHERIT );
     if( config_GetInt( p_libvlc, "quiet" ) > 0 )




More information about the vlc-devel mailing list