Mercurial > mplayer.hg
changeset 6816:f01e5cefb828
Add uninit to the avi demuxer
author | albeu |
---|---|
date | Fri, 26 Jul 2002 12:36:13 +0000 |
parents | bdd6735a8d83 |
children | 3e62e9cd1816 |
files | libmpdemux/demux_avi.c libmpdemux/demuxer.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_avi.c Fri Jul 26 12:22:49 2002 +0000 +++ b/libmpdemux/demux_avi.c Fri Jul 26 12:36:13 2002 +0000 @@ -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); +}
--- a/libmpdemux/demuxer.c Fri Jul 26 12:22:49 2002 +0000 +++ b/libmpdemux/demuxer.c Fri Jul 26 12:36:13 2002 +0000 @@ -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++){