X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fmisc%2Flogger.c;h=7e92e97c2e002701911b3fc2727f509e024bd274;hb=56facae87c28cccca988fa75b104a5bd5ec1da47;hp=d454a074fdcd61f6497b26686a4c9776401c2a82;hpb=5e15258c9ef28558fe2abc941fc1527e02b04c21;p=vlc diff --git a/modules/misc/logger.c b/modules/misc/logger.c index d454a074fd..7e92e97c2e 100644 --- a/modules/misc/logger.c +++ b/modules/misc/logger.c @@ -29,7 +29,7 @@ # include "config.h" #endif -#include +#include #include #include #include @@ -167,10 +167,7 @@ static int Open( vlc_object_t *p_this ) /* Allocate instance and initialize some members */ p_intf->p_sys = (intf_sys_t *)malloc( sizeof( intf_sys_t ) ); if( p_intf->p_sys == NULL ) - { - msg_Err( p_intf, "out of memory" ); return -1; - } psz_mode = var_CreateGetString( p_intf, "logmode" ); if( psz_mode ) @@ -323,7 +320,7 @@ static void Close( vlc_object_t *p_this ) *****************************************************************************/ static void Run( intf_thread_t *p_intf ) { - while( !p_intf->b_die ) + while( vlc_object_alive (p_intf) ) { FlushQueue( p_intf->p_sys->p_sub, p_intf->p_sys->p_file, p_intf->p_sys->i_mode,