[Mplayer-cvslog] CVS: main/libmpdemux demuxer.c,1.168,1.169
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Fri Oct 1 21:51:05 CEST 2004
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv5097/libmpdemux
Modified Files:
demuxer.c
Log Message:
fixed small memleak
Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.c,v
retrieving revision 1.168
retrieving revision 1.169
diff -u -r1.168 -r1.169
--- demuxer.c 23 Sep 2004 23:01:48 -0000 1.168
+++ demuxer.c 1 Oct 2004 19:51:03 -0000 1.169
@@ -703,11 +703,12 @@
if(id==formtypeAVI){
mp_msg(MSGT_DEMUXER,MSGL_INFO,MSGTR_Detected_XXX_FileFormat,"AVI");
file_format=DEMUXER_TYPE_AVI;
- } else {
- free_demuxer(demuxer);
- demuxer = NULL;
}
}
+ if (file_format==DEMUXER_TYPE_UNKNOWN) {
+ free_demuxer(demuxer);
+ demuxer = NULL;
+ }
}
}
//=============== Try to open as Y4M file: =================
More information about the MPlayer-cvslog
mailing list