Commit 74da71f8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Only override verbosity from VLC_VERBOSE if actually set

parent 397b8205
...@@ -201,7 +201,8 @@ libvlc_int_t * libvlc_InternalCreate( void ) ...@@ -201,7 +201,8 @@ libvlc_int_t * libvlc_InternalCreate( void )
/* Find verbosity from VLC_VERBOSE environment variable */ /* Find verbosity from VLC_VERBOSE environment variable */
psz_env = getenv( "VLC_VERBOSE" ); psz_env = getenv( "VLC_VERBOSE" );
p_libvlc->i_verbose = psz_env ? atoi( psz_env ) : -1; if( psz_env != NULL )
p_libvlc->i_verbose = atoi( psz_env );
#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