[Mplayer-cvslog] CVS: main/libmpdemux demux_asf.c,1.29,1.30

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sat Sep 11 11:40:37 CEST 2004


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv8742/libmpdemux

Modified Files:
	demux_asf.c 
Log Message:
fix seeking in audio-only case (crash when seeking backwards, time reset to 0)


Index: demux_asf.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_asf.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- demux_asf.c	21 Jul 2004 08:54:39 -0000	1.29
+++ demux_asf.c	11 Sep 2004 09:40:34 -0000	1.30
@@ -383,12 +383,16 @@
 //    printf("\r -- asf: newpos=%d -- \n",newpos);
     stream_seek(demuxer->stream,newpos);
 
+    if (d_video->id >= 0)
     ds_fill_buffer(d_video);
     if(sh_audio){
       ds_fill_buffer(d_audio);
       resync_audio_stream(sh_audio);
     }
     
+    if (d_video->id < 0)
+      sh_audio->delay = d_audio->pts;
+    else
     while(1){
 	if(sh_audio && !d_audio->eof){
 	  float a_pts=d_audio->pts;




More information about the MPlayer-cvslog mailing list