[MPlayer-dev-eng] [PATCH] libbs2b audio filter
Andrew Savchenko
bircoph at gmail.com
Sat Mar 28 06:09:27 CET 2009
Hi,
On Saturday 28 March 2009 06:49, Uoti Urpala wrote:
> On Sat, 2009-03-28 at 06:21 +0300, Andrew Savchenko wrote:
> > I admit, in rare cases goto is a good solution, but not it
> > this one. Please note: cleanups with all sanity checks are
> > already implemented as uninit functions. So IMO the best
> > solution in particular case of libaf will be to call uninit
> > function if an appropriate error code from af_open is
> > returned. Perhaps the best choise for return code will be
> > AF_FATAL due to severe nature of memory allocation problems.
> > However, special code of mask like AF_CLEANUP may be
> > introduced.
>
> Add a special return value to the API that at best avoids a
> single line of additional code when it's used? I think that's
> clearly a bad tradeoff. If the filter wants uninit() called then
> it can call that itself before returning.
You definitely misread my message. Where you can see single
additional line? Without function call described above whole
uninit function will be actually duplicated after the goto's
label.
--
Best regards,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090328/17ac7127/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list