mirror of https://github.com/mpv-player/mpv
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:
parent
a7ed1f07e7
commit
633627bc58
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue