X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc-common.c;h=0403d34d9f95f796b316106160c65617f5a1f463;hb=973f2f06b07e7773fd58abd3e5d4f89454dc7bc4;hp=d2efb7639afdfb6f47dd43e4620308fe5c147323;hpb=40f43d3256ee86695e0bf44adabb691707d5de01;p=vlc diff --git a/src/libvlc-common.c b/src/libvlc-common.c index d2efb7639a..0403d34d9f 100644 --- a/src/libvlc-common.c +++ b/src/libvlc-common.c @@ -190,13 +190,13 @@ libvlc_int_t * libvlc_InternalCreate( void ) /* Find verbosity from VLC_VERBOSE environment variable */ psz_env = getenv( "VLC_VERBOSE" ); if( psz_env != NULL ) - p_libvlc->i_verbose = atoi( psz_env ); + priv->i_verbose = atoi( psz_env ); else - p_libvlc->i_verbose = 3; + priv->i_verbose = 3; #if defined( HAVE_ISATTY ) && !defined( WIN32 ) - p_libvlc->b_color = isatty( 2 ); /* 2 is for stderr */ + priv->b_color = isatty( 2 ); /* 2 is for stderr */ #else - p_libvlc->b_color = false; + priv->b_color = false; #endif /* Announce who we are - Do it only for first instance ? */ @@ -313,7 +313,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, } /* Will be re-done properly later on */ - p_libvlc->i_verbose = config_GetInt( p_libvlc, "verbose" ); + priv->i_verbose = config_GetInt( p_libvlc, "verbose" ); /* Check for daemon mode */ #ifndef WIN32 @@ -656,8 +656,8 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, var_AddCallback( p_libvlc, "verbose", VerboseCallback, NULL ); var_Change( p_libvlc, "verbose", VLC_VAR_TRIGGER_CALLBACKS, NULL, NULL ); - if( p_libvlc->b_color ) - p_libvlc->b_color = config_GetInt( p_libvlc, "color" ) > 0; + if( priv->b_color ) + priv->b_color = config_GetInt( p_libvlc, "color" ) > 0; /* * Output messages that may still be in the queue @@ -1973,7 +1973,7 @@ static int VerboseCallback( vlc_object_t *p_this, const char *psz_variable, if( new_val.i_int >= -1 ) { - p_libvlc->i_verbose = __MIN( new_val.i_int, 2 ); + libvlc_priv (p_libvlc)->i_verbose = __MIN( new_val.i_int, 2 ); } return VLC_SUCCESS; }