changeset 22835:9c2c08ad519f

Gui: Show correct time after seeking in audio-only files. Patch by Onur K¸«ä¸«®¸«äk, onur.--.-.delipenguen.net
author cehoyos
date Sat, 31 Mar 2007 11:01:28 +0000
parents 51406f16a929
children e547888c4413
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mplayer.c	Sat Mar 31 08:13:21 2007 +0000
+++ b/mplayer.c	Sat Mar 31 11:01:28 2007 +0000
@@ -3558,7 +3558,7 @@
           guiIntfStruct.Position=demuxer_get_percent_pos(mpctx->demuxer);
 	}
 	if ( mpctx->sh_video ) guiIntfStruct.TimeSec=mpctx->sh_video->pts;
-	  else if ( mpctx->sh_audio ) guiIntfStruct.TimeSec=mpctx->delay;
+	  else if ( mpctx->sh_audio ) guiIntfStruct.TimeSec=playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out);
 	guiIntfStruct.LengthInSec=demuxer_get_time_length(mpctx->demuxer);
 	guiGetEvent( guiReDraw,NULL );
 	guiGetEvent( guiSetVolume,NULL );