[Mplayer-cvslog] CVS: main/libmpdemux demuxer.c,1.85,1.86
Arpi of Ize
arpi at mplayer.dev.hu
Sun Mar 31 04:45:17 CEST 2002
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv32647
Modified Files:
demuxer.c
Log Message:
added soem debug prints, and fixed 10l bug of Alban
Index: demuxer.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demuxer.c,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -r1.85 -r1.86
--- demuxer.c 20 Mar 2002 05:15:53 -0000 1.85
+++ demuxer.c 31 Mar 2002 02:45:14 -0000 1.86
@@ -98,6 +98,7 @@
}
void free_sh_audio(sh_audio_t* sh){
+ mp_msg(MSGT_DEMUXER,MSGL_V,"DEMUXER: freeing sh_audio at %p \n",sh);
if(sh->a_in_buffer) free(sh->a_in_buffer);
if(sh->a_buffer) free(sh->a_buffer);
if(sh->wf) free(sh->wf);
@@ -133,6 +134,7 @@
}
void free_sh_video(sh_video_t* sh){
+ mp_msg(MSGT_DEMUXER,MSGL_V,"DEMUXER: freeing sh_video at %p \n",sh);
// if(sh->our_out_buffer) free(sh->our_out_buffer);
if(sh->bih) free(sh->bih);
free(sh);
@@ -140,6 +142,7 @@
void free_demuxer(demuxer_t *demuxer){
int i;
+ mp_msg(MSGT_DEMUXER,MSGL_V,"DEMUXER: freeing demuxer at %p \n",demuxer);
// free streams:
for(i=0;i<256;i++){
if(demuxer->a_streams[i]) free_sh_audio(demuxer->a_streams[i]);
@@ -150,6 +153,7 @@
// free demuxers:
free_demuxer_stream(demuxer->audio);
free_demuxer_stream(demuxer->video);
+ free_demuxer_stream(demuxer->sub);
if(demuxer->info) {
for(i=0;demuxer->info[i] != NULL; i++)
free(demuxer->info[i]);
@@ -755,6 +759,7 @@
case DEMUXER_TYPE_AVI: {
sh_audio_t* sh_a;
demuxer = (demuxer_t*) demux_open_avi(demuxer);
+ if(!demuxer) return NULL; // failed to open
sh_a = (sh_audio_t*)demuxer->audio->sh;
if(demuxer->audio->id != -2 && sh_a && sh_a->format == 0xFFFE)
demuxer = init_avi_with_ogg(demuxer);
More information about the MPlayer-cvslog
mailing list