[Mplayer-cvslog] CVS: main mplayer.c,1.477,1.478
Zoltan Ponekker
pontscho at mplayerhq.hu
Tue Apr 23 15:08:13 CEST 2002
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv4590
Modified Files:
mplayer.c
Log Message:
fix timer for audio only files
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.477
retrieving revision 1.478
diff -u -r1.477 -r1.478
--- mplayer.c 22 Apr 2002 21:36:05 -0000 1.477
+++ mplayer.c 23 Apr 2002 13:07:58 -0000 1.478
@@ -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 )
More information about the MPlayer-cvslog
mailing list