Put filter count to zero after releasing all audio filters.
authorJean-Paul Saman <jpsaman@videolan.org>
Mon, 14 Apr 2008 12:17:17 +0000 (14:17 +0200)
committerJean-Paul Saman <jpsaman@videolan.org>
Mon, 14 Apr 2008 12:17:39 +0000 (14:17 +0200)
modules/stream_out/transcode.c

index 009929a..ebecc19 100644 (file)
@@ -1513,6 +1513,8 @@ static void transcode_audio_close( sout_stream_id_t *id )
             module_Unneed( id->pp_filter[i], id->pp_filter[i]->p_module );
         vlc_object_release( id->pp_filter[i] );
     }
+    id->i_filter = 0;
+
     for( i = 0; i < id->i_ufilter; i++ )
     {
         vlc_object_detach( id->pp_ufilter[i] );
@@ -1520,6 +1522,7 @@ static void transcode_audio_close( sout_stream_id_t *id )
             module_Unneed( id->pp_ufilter[i], id->pp_ufilter[i]->p_module );
         vlc_object_release( id->pp_ufilter[i] );
     }
+    id->i_ufilter = 0;
 }
 
 static int transcode_audio_process( sout_stream_t *p_stream,