[vlc-devel] commit: Put i_filter/i_vfilter to 0 after releasing all filters. ( Jean-Paul Saman )

git version control git at videolan.org
Mon Apr 14 14:44:58 CEST 2008


vlc | branch: 0.8.6-bugfix | Jean-Paul Saman <jpsaman at videolan.org> | Mon Apr 14 14:34:56 2008 +0200| [f6511af848a6d837f8f8c0bf60b511e9946a7bc2]

Put i_filter/i_vfilter to 0 after releasing all filters.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f6511af848a6d837f8f8c0bf60b511e9946a7bc2
---

 modules/stream_out/transcode.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/stream_out/transcode.c b/modules/stream_out/transcode.c
index 28efd44..f9dc400 100644
--- a/modules/stream_out/transcode.c
+++ b/modules/stream_out/transcode.c
@@ -1424,6 +1424,7 @@ static void transcode_audio_close( sout_stream_t *p_stream,
             module_Unneed( id->pp_filter[i], id->pp_filter[i]->p_module );
         vlc_object_destroy( id->pp_filter[i] );
     }
+    id->i_filter = 0;
 }
 
 static int transcode_audio_process( sout_stream_t *p_stream,
@@ -1995,6 +1996,8 @@ static void transcode_video_close( sout_stream_t *p_stream,
 
         vlc_object_destroy( id->pp_filter[i] );
     }
+    id->i_filter = 0;
+
     for( i = 0; i < id->i_vfilter; i++ )
     {
         vlc_object_detach( id->pp_vfilter[i] );
@@ -2012,6 +2015,7 @@ static void transcode_video_close( sout_stream_t *p_stream,
 
         vlc_object_destroy( id->pp_vfilter[i] );
     }
+    id->i_vfilter = 0;
 }
 
 static int transcode_video_process( sout_stream_t *p_stream,




More information about the vlc-devel mailing list