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