summaryrefslogtreecommitdiffstats
path: root/mplayer.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-23 13:07:58 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-04-23 13:07:58 +0000
commit471842ba74a770e35086d93cbf2ecf6074a2f1fd (patch)
treeb0f84568ea17c29aa2b9df36c2e3c0d229f9ecab /mplayer.c
parent914a665db2e2fff7566de190eae8332d34ff5a73 (diff)
downloadmpv-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mplayer.c b/mplayer.c
index 5ec8fac784..0ea4c422fc 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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 )