[Mplayer-cvslog] CVS: main/libmpdemux demux_audio.c,1.26,1.27

Richard Felker CVS syncmail at mplayerhq.hu
Mon Sep 6 00:11:02 CEST 2004


CVS change done by Richard Felker CVS

Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv14088/libmpdemux

Modified Files:
	demux_audio.c 
Log Message:
fix seeking with -hr-mp3-seek. maybe not the best fix (why is last_pts
ever infinite?!?!) but at least it makes it work... :)
patch by Balazs KOSSOVICS (tevefeju AT freemail.hu):

Hi!
When we listening music with "-hr-mp3-seek" option, than there is a
negative value at the first rewinds in the statusrange (-52 hours, some
minutes). The patch is against this.



Index: demux_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_audio.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- demux_audio.c	12 Aug 2004 12:36:08 -0000	1.26
+++ demux_audio.c	5 Sep 2004 22:10:59 -0000	1.27
@@ -373,6 +373,7 @@
   priv = demuxer->priv;
 
   if(priv->frmt == MP3 && hr_mp3_seek && !(flags & 2)) {
+    if(isinf(priv->last_pts)) priv->last_pts=0;
     len = (flags & 1) ? rel_seek_secs - priv->last_pts : rel_seek_secs;
     if(len < 0) {
       stream_seek(s,demuxer->movi_start);




More information about the MPlayer-cvslog mailing list