[vlc-devel] commit: Do not use interface parameters ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat May 31 12:27:55 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat May 31 13:23:24 2008 +0300| [9ae47b931d4026f7f41e7f4e729cee35a4d767ff]
Do not use interface parameters
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9ae47b931d4026f7f41e7f4e729cee35a4d767ff
---
src/libvlc-common.c | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/libvlc-common.c b/src/libvlc-common.c
index 18edd09..66a5c29 100644
--- a/src/libvlc-common.c
+++ b/src/libvlc-common.c
@@ -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
More information about the vlc-devel
mailing list