[MPlayer-cvslog] r22853 - trunk/mplayer.c

cehoyos subversion at mplayerhq.hu
Sat Mar 31 13:01:28 CEST 2007


Author: cehoyos
Date: Sat Mar 31 13:01:28 2007
New Revision: 22853

Modified:
   trunk/mplayer.c

Log:
Gui: Show correct time after seeking in audio-only files.

Patch by Onur Küçük, onur.--.-.delipenguen.net



Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	(original)
+++ trunk/mplayer.c	Sat Mar 31 13:01:28 2007
@@ -3558,7 +3558,7 @@ if(rel_seek_secs || abs_seek_pos){
           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 );



More information about the MPlayer-cvslog mailing list