diff options
author | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-23 13:07:58 +0000 |
---|---|---|
committer | pontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-04-23 13:07:58 +0000 |
commit | 471842ba74a770e35086d93cbf2ecf6074a2f1fd (patch) | |
tree | b0f84568ea17c29aa2b9df36c2e3c0d229f9ecab /mplayer.c | |
parent | 914a665db2e2fff7566de190eae8332d34ff5a73 (diff) | |
download | mpv-471842ba74a770e35086d93cbf2ecf6074a2f1fd.tar.bz2 mpv-471842ba74a770e35086d93cbf2ecf6074a2f1fd.tar.xz |
fix timer for audio only files
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5795 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -2743,7 +2743,8 @@ if(rel_seek_secs || abs_seek_pos){ int pos=(demuxer->file_format==DEMUXER_TYPE_AVI)?demuxer->filepos:d_video->pos; guiIntfStruct.Position=(len<=0)?0:((float)(pos-demuxer->movi_start) / len * 100.0f); } - guiIntfStruct.TimeSec=d_video->pts; + if ( demuxer->file_format==DEMUXER_TYPE_AUDIO ) guiIntfStruct.TimeSec=sh_audio->timer; + else guiIntfStruct.TimeSec=d_video->pts; if(guiIntfStruct.Playing==0) break; // STOP if(guiIntfStruct.Playing==2) osd_function=OSD_PAUSE; if ( guiIntfStruct.VolumeChanged ) |