[MPlayer-cvslog] r31558 - trunk/libaf/af_ladspa.c
reimar
subversion at mplayerhq.hu
Fri Jun 25 18:53:28 CEST 2010
Author: reimar
Date: Fri Jun 25 18:53:27 2010
New Revision: 31558
Log:
ladspa: ensure that activate is called on each filter instance, even
if we have e.g. multiple mono filters handling a multichannel file.
Fixes one of the bugs reported as bug #1685.
Modified:
trunk/libaf/af_ladspa.c
Modified: trunk/libaf/af_ladspa.c
==============================================================================
--- trunk/libaf/af_ladspa.c Fri Jun 25 15:30:34 2010 (r31557)
+++ trunk/libaf/af_ladspa.c Fri Jun 25 18:53:27 2010 (r31558)
@@ -834,12 +834,11 @@ static af_data_t* play(struct af_instanc
/* Activate filter (if it isn't already :) ) */
- if ( (pdes->activate) && (setup->activated == 0) ) {
+ if (pdes->activate && !setup->activated && i % setup->ninputs == 0)
pdes->activate(setup->chhandles[i]);
- setup->activated = 1;
- }
} /* All channels/filters done! except for... */
+ setup->activated = 1;
/* Stereo effect with one channel left. Use same buffer for left
* and right. connect it to the second port.
More information about the MPlayer-cvslog
mailing list