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

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



git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22853 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2007-03-31 11:01:28 +00:00
parent a7ed1f07e7
commit 633627bc58
1 changed files with 1 additions and 1 deletions

View File

@ -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 );