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

D Richard Felker III dalias at aerifal.cx
Thu Sep 9 02:56:10 CEST 2004


On Mon, Sep 06, 2004 at 12:11:02AM +0200, Richard Felker CVS wrote:
> 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.

this patch helps, but it's incorrect. the first seek you do with it
applied is always relative to the start of the file, not relative to
the current position. better than before, but a real fix would be
welcome!

rich


> 
> 
> 
> 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);
> 
> _______________________________________________
> Mplayer-cvslog mailing list
> Mplayer-cvslog at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mplayer-cvslog




More information about the MPlayer-cvslog mailing list