[Mplayer-cvslog] CVS: main/libmpdemux demuxer.c,1.100,1.101 demux_avi.c,1.40,1.41

Alban Bedel CVS albeu at mplayerhq.hu
Fri Jul 26 14:36:22 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv3101/libmpdemux

Modified Files:
	demuxer.c demux_avi.c 
Log Message:
Add uninit to the avi demuxer


Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.c,v
retrieving revision 1.100
retrieving revision 1.101
diff -u -r1.100 -r1.101
--- demuxer.c	2 Jul 2002 22:31:50 -0000	1.100
+++ demuxer.c	26 Jul 2002 12:36:13 -0000	1.101
@@ -149,6 +149,7 @@
 extern void demux_close_audio(demuxer_t* demuxer);
 extern void demux_close_ogg(demuxer_t* demuxer);
 extern void demux_close_demuxers(demuxer_t* demuxer);
+extern void demux_close_avi(demuxer_t *demuxer);
 
 void free_demuxer(demuxer_t *demuxer){
     int i;
@@ -178,6 +179,10 @@
       demux_close_ogg(demuxer); break;
     case DEMUXER_TYPE_DEMUXERS:
       demux_close_demuxers(demuxer); return;
+    case DEMUXER_TYPE_AVI: 
+    case DEMUXER_TYPE_AVI_NI:
+    case DEMUXER_TYPE_AVI_NINI:
+      demux_close_avi(demuxer); return;
     }
     // free streams:
     for(i=0;i<256;i++){

Index: demux_avi.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_avi.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- demux_avi.c	4 Jul 2002 22:17:30 -0000	1.40
+++ demux_avi.c	26 Jul 2002 12:36:13 -0000	1.41
@@ -726,4 +726,13 @@
 }
 
 
+void demux_close_avi(demuxer_t *demuxer) {
+  avi_priv_t* priv=demuxer->priv;
 
+  if(!priv)
+    return;
+
+  if(priv->idx_size > 0)
+    free(priv->idx);
+  free(priv);
+}




More information about the MPlayer-cvslog mailing list