]> git.sesse.net Git - vlc/commitdiff
Prevent these errors when using help flag
authorAntoine Cellerier <dionoea@videolan.org>
Sun, 25 Feb 2007 01:46:25 +0000 (01:46 +0000)
committerAntoine Cellerier <dionoea@videolan.org>
Sun, 25 Feb 2007 01:46:25 +0000 (01:46 +0000)
[00000001] main libvlc error: option daemon does not exist
[00000001] main libvlc error: option pidfile does not exist

The were due to the module_EndBand( p_libvlc ); on line 430 in libvlc-common.c . Please check that this is the correct way of doing it.

src/libvlc-common.c

index b850e923ab7a5b8004401453cc250d51e27633d3..2ff4f9c1cf163a2ae4f2d619de27dbc9acfeceac 100644 (file)
@@ -1007,6 +1007,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, vlc_bool_t b_release )
 #ifndef WIN32
     char* psz_pidfile = NULL;
 
+    if( p_libvlc->p_libvlc_global->p_module_bank )
     if( config_GetInt( p_libvlc, "daemon" ) )
     {
         psz_pidfile = config_GetPsz( p_libvlc, "pidfile" );