Commit 9ae47b93 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not use interface parameters

parent 06a986a5
......@@ -848,9 +848,17 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc,
#ifdef HAVE_SYSLOG_H
if( config_GetInt( p_libvlc, "syslog" ) > 0 )
{
const char *psz_logmode = "logmode=syslog";
libvlc_InternalAddIntf( p_libvlc, "logger,none", false,
1, &psz_logmode );
char *logmode = var_CreateGetString( p_libvlc, "logmode" );
var_SetString( p_libvlc, "logmode", "syslog" );
libvlc_InternalAddIntf( p_libvlc, "logger,none", false, 0, NULL );
if( logmode )
{
var_SetString( p_libvlc, "logmode", logmode );
free( logmode );
}
else
var_Destroy( p_libvlc, "logmode" );
}
#endif
......
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