]> git.sesse.net Git - vlc/commitdiff
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 f31e0d95ebfbd9ffba57f8d8a893429991dca23b..e00ad5a5e6d5343a02de7411804be40faaa9ad9b 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