X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Flibvlc-common.c;h=755f8903dd86bcd5682b7304758b9b9903960d1e;hb=b16fe48fe68f59a62a2c7aa300adaf48d16fa909;hp=006396da2ee8f227c91b99476b8f08956ea41ee9;hpb=8764d2a1a6b555eaaeec81bc953cc723608f5ebf;p=vlc diff --git a/src/libvlc-common.c b/src/libvlc-common.c index 006396da2e..755f8903dd 100644 --- a/src/libvlc-common.c +++ b/src/libvlc-common.c @@ -309,7 +309,7 @@ int libvlc_InternalInit( libvlc_int_t *p_libvlc, int i_argc, /* Check for daemon mode */ #ifndef WIN32 - if( config_GetInt( p_libvlc, "daemon" ) ) + if( config_GetInt( p_libvlc, "daemon" ) > 0 ) { #ifdef HAVE_DAEMON char *psz_pidfile = NULL; @@ -1033,7 +1033,7 @@ int libvlc_InternalDestroy( libvlc_int_t *p_libvlc, bool b_release ) #ifndef WIN32 char* psz_pidfile = NULL; - if( config_GetInt( p_libvlc, "daemon" ) > 0 ) + if( b_daemon ) { psz_pidfile = config_GetPsz( p_libvlc, "pidfile" ); if( psz_pidfile != NULL )