Set verbosity to something until we parse the command line.
authorRémi Denis-Courmont <rem@videolan.org>
Sun, 23 Sep 2007 09:49:54 +0000 (09:49 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Sun, 23 Sep 2007 09:49:54 +0000 (09:49 +0000)
Ideally, the command line would be parsed earlier.

src/libvlc-common.c

index f31e0d9..e00ad5a 100644 (file)
@@ -203,6 +203,8 @@ libvlc_int_t * libvlc_InternalCreate( void )
     psz_env = getenv( "VLC_VERBOSE" );
     if( psz_env != NULL )
         p_libvlc->i_verbose = atoi( psz_env );
+    else
+        p_libvlc->i_verbose = 3;
 #if defined( HAVE_ISATTY ) && !defined( WIN32 )
     p_libvlc->b_color = isatty( 2 ); /* 2 is for stderr */
 #else