changeset 14877:db1f17e9b7a2

set sh_audio->delay ins audio-only case so that correct time is displayed after seeking.
author reimar
date Tue, 01 Mar 2005 20:16:49 +0000
parents 2b14e57570a8
children 5723c4b2a2ea
files libmpdemux/demux_mov.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Tue Mar 01 19:59:20 2005 +0000
+++ b/libmpdemux/demux_mov.c	Tue Mar 01 20:16:49 2005 +0000
@@ -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;
     }
 
 }