Yes. But currently we drain in the case of codec change. So there is no
more data... bWaitForBuffers is set in that case.

I do see the potential need. But not in the way dvdplayer currently
operate.
On Aug 18, 2013 9:04 PM, "Rainer Hochecker" <notifications@github.com>
wrote:

> In xbmc/cores/dvdplayer/DVDPlayerAudio.cpp:
>
> > @@ -231,6 +231,11 @@ void CDVDPlayerAudio::CloseStream(bool bWaitForBuffers)
> >      m_dvdAudio.Drain();
> >      m_bStop = true;
> >    }
> > +  else
> > +  {
> > +    m_dvdAudio.Flush();
> > +  }
> > +
>
> we need to distinguish between destroying a stream on stop and destroying
> a stream after a codec change. The latter case requires that AE keeps a
> buffer for proper transition from the old stream to the new one. On stop we
> want audio to stop immediately.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/xbmc/xbmc/pull/3095/files#r5832157>
> .
>