[MPlayer-cvslog] CVS: main/libmpdemux demux_mov.c,1.114,1.115

Reimar Döffinger CVS syncmail at mplayerhq.hu
Tue Mar 1 21:16:52 CET 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	demux_mov.c 
Log Message:
set sh_audio->delay ins audio-only case so that correct time is displayed
after seeking.


Index: demux_mov.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mov.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -u -r1.114 -r1.115
--- demux_mov.c	15 Feb 2005 21:04:33 -0000	1.114
+++ demux_mov.c	1 Mar 2005 20:16:49 -0000	1.115
@@ -1889,6 +1889,8 @@
 	//if(flags&2) pts*=(float)trak->length/(float)trak->timescale;
 	//if(!(flags&1)) pts+=ds->pts;
 	ds->pts=mov_seek_track(trak,pts,flags);
+	if (demuxer->video->id < 0)
+	  ((sh_audio_t*)ds->sh)->delay = ds->pts;
     }
 
 }




More information about the MPlayer-cvslog mailing list