[vlc-devel] commit: Fixed record DelEs function. (Laurent Aimar )

git version control git at videolan.org
Tue Apr 28 19:02:34 CEST 2009


vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Mon Apr 27 20:24:59 2009 +0200| [abfc0650df0cb54c55bb7783a75b9c29029ae8b5] | committer: Laurent Aimar 

Fixed record DelEs function.

It fixes some segfault when stopping recording.

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

 modules/stream_out/record.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/stream_out/record.c b/modules/stream_out/record.c
index ed5b2f3..53a3f39 100644
--- a/modules/stream_out/record.c
+++ b/modules/stream_out/record.c
@@ -210,12 +210,13 @@ static int Del( sout_stream_t *p_stream, sout_stream_id_t *id )
 
     if( id->p_first )
         block_ChainRelease( id->p_first );
-    es_format_Clean( &id->fmt );
 
     assert( !id->id || p_sys->p_out );
     if( id->id )
         sout_StreamIdDel( p_sys->p_out, id->id );
 
+    es_format_Clean( &id->fmt );
+
     TAB_REMOVE( p_sys->i_id, p_sys->id, id );
 
     if( p_sys->i_id <= 0 )




More information about the vlc-devel mailing list