]> git.sesse.net Git - vlc/commitdiff
Fixed input clean up in case of sout error.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 31 Jan 2010 00:13:05 +0000 (01:13 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 31 Jan 2010 00:13:05 +0000 (01:13 +0100)
src/input/input.c

index a8c96b5c6517f98a15a2d82bd152a36bddc9a4c6..6276c105917a5555b411e8423d9ba97660363e00 100644 (file)
@@ -1206,7 +1206,7 @@ static int Init( input_thread_t * p_input )
     InitStatistics( p_input );
 #ifdef ENABLE_SOUT
     if( InitSout( p_input ) )
-        goto error_stats;
+        goto error;
 #endif
 
     /* Create es out */
@@ -1299,9 +1299,6 @@ error:
         input_resource_SetInput( p_input->p->p_resource, 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 ) \