Commit 0a9fae62 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Set verbosity to something until we parse the command line.

Ideally, the command line would be parsed earlier.
parent 892e5a56
...@@ -203,6 +203,8 @@ libvlc_int_t * libvlc_InternalCreate( void ) ...@@ -203,6 +203,8 @@ libvlc_int_t * libvlc_InternalCreate( void )
psz_env = getenv( "VLC_VERBOSE" ); psz_env = getenv( "VLC_VERBOSE" );
if( psz_env != NULL ) if( psz_env != NULL )
p_libvlc->i_verbose = atoi( psz_env ); p_libvlc->i_verbose = atoi( psz_env );
else
p_libvlc->i_verbose = 3;
#if defined( HAVE_ISATTY ) && !defined( WIN32 ) #if defined( HAVE_ISATTY ) && !defined( WIN32 )
p_libvlc->b_color = isatty( 2 ); /* 2 is for stderr */ p_libvlc->b_color = isatty( 2 ); /* 2 is for stderr */
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment