Mercurial > mplayer.hg
changeset 5794:d9c211c2907f
fix timer for audio only files
author | pontscho |
---|---|
date | Tue, 23 Apr 2002 13:07:58 +0000 |
parents | a4165df1936d |
children | 6ee426749843 |
files | mplayer.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mplayer.c Tue Apr 23 09:26:29 2002 +0000 +++ b/mplayer.c Tue Apr 23 13:07:58 2002 +0000 @@ -2743,7 +2743,8 @@ 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 )