* sout: fix a stupid bug making avi muxer segfaulting.
authorLaurent Aimar <fenrir@videolan.org>
Sat, 15 Mar 2003 19:26:13 +0000 (19:26 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sat, 15 Mar 2003 19:26:13 +0000 (19:26 +0000)
src/stream_output/stream_output.c

index 07513db..5dd1c15 100644 (file)
@@ -2,7 +2,7 @@
  * stream_output.c : stream output module
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: stream_output.c,v 1.20 2003/03/12 05:26:46 sam Exp $
+ * $Id: stream_output.c,v 1.21 2003/03/15 19:26:13 fenrir Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Laurent Aimar <fenrir@via.ecp.fr>
@@ -244,8 +244,8 @@ void sout_DeleteInstance( sout_instance_t * p_sout )
     for( i = 0; i < p_sout->i_nb_mux; i++ )
     {
 #define p_mux p_sout->pp_mux[i]
-        sout_AccessOutDelete( p_mux->p_access );
         MuxDelete( p_mux );
+        sout_AccessOutDelete( p_mux->p_access );
 #undef  p_mux
     }
     FREE( p_sout->pp_mux );