From: RĂ©mi Denis-Courmont Date: Wed, 11 Feb 2009 20:41:02 +0000 (+0200) Subject: Cleanup input stats when sout fails X-Git-Tag: 1.0.0-pre1~724 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f90f0553f7e7d1ac8e6e02a92613abc17206473d;p=vlc Cleanup input stats when sout fails --- diff --git a/src/input/input.c b/src/input/input.c index 4d2ac518cd..49abe70b82 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -1142,7 +1142,7 @@ static int Init( input_thread_t * p_input ) #ifdef ENABLE_SOUT ret = InitSout( p_input ); if( ret != VLC_SUCCESS ) - return ret; /* FIXME: goto error; should be better here */ + goto error_stats; #endif /* Create es out */ @@ -1240,6 +1240,9 @@ error: input_ressource_SetInput( p_input->p->p_ressource, NULL ); } +#ifdef ENABLE_SOUT +error_stats: +#endif if( !p_input->b_preparsing && libvlc_stats( p_input ) ) { #define EXIT_COUNTER( c ) do { if( p_input->p->counters.p_##c ) \