[MPlayer-dev-eng] [PATCH] mplayer: fix buffer handling during channel change.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Tue May 12 19:40:49 CEST 2015


On Tue, May 12, 2015 at 03:07:06PM +0200, Nicolas George wrote:
> Le primidi 21 floréal, an CCXXIII, Reimar Döffinger a écrit :
> > Even just dropping the remaining data seems safer/better.
> > This is a horrible hack and the variable should be moved into the
> > context instead (so it can be properly reset on seek for example),
> > but doesn't this work:
> 
> It does. See the attached patch for a version with the variable moved to the
> context.
> 
> I have looked at the seek() function, it does not seem to flush anything
> about the audio buffers, so I did not add a reset of the
> a_buffer_format_change field.

Looks good to me, thanks.


More information about the MPlayer-dev-eng mailing list