[MPlayer-dev-eng] [PATCH] af_pan.c: Avoid zero output channels when reinit af pan
Zuxy Meng
zuxy.meng at gmail.com
Mon Jun 11 12:52:34 CEST 2007
Hi,
2007/6/11, Reimar Doeffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de>:
> Hello,
> On Mon, Jun 11, 2007 at 08:32:22AM +0800, Zuxy Meng wrote:
> [...]
> > @@ -48,7 +50,11 @@
> > ((af_data_t*)arg)->bps = af->data->bps;
> > return AF_FALSE;
> > }
> > - return control(af,AF_CONTROL_PAN_NOUT | AF_CONTROL_SET, &af->data->nch);
> > +
> > + if (s->nch)
> > + return control(af,AF_CONTROL_PAN_NOUT | AF_CONTROL_SET, &af->data->nch);
> > + else
> > + return AF_OK;
>
> Please don't add an extra line. And actually that control call is
> completely pointless, it is a NOP always, just return AF_OK directly.
Hmm...what about other parts? And what about making pan reentrant?
There seems to be no problem in having more than one pan filters in
the chain after some testing.
--
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
More information about the MPlayer-dev-eng
mailing list