[MPlayer-dev-eng] Re: [PATCH] demuxers: move resync_audio_stream call to demuxer.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Oct 15 15:21:28 CEST 2005


Hi,
On Sat, Oct 15, 2005 at 02:36:55PM +0200, Alban Bedel wrote:
> On Sat, 15 Oct 2005 14:12:32 +0200
> Reimar Döffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> wrote:
> > @@ -856,6 +857,8 @@
> >  if (demuxer->desc->seek)
> >      demuxer->desc->seek(demuxer,rel_seek_secs,flags);
> >  
> > +    if (sh_audio) resync_audio_stream(sh_audio);
> > +
> 
> You still forgot to put that one inside the if(demuxer->desc->seek).

No. Read the mail before. Audio packets are discarded any way, so resync
should be called anyway, since the audio stream will not be continous.
Also, a demuxer that does not provide a seek functions should set the
seekable flag to 0 I guess, thus avoiding ever ending up here.

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list