Mercurial > mplayer.hg
comparison libaf/af_ladspa.c @ 31492:e4d6cf87aa06
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.
author | reimar |
---|---|
date | Fri, 25 Jun 2010 16:53:27 +0000 |
parents | 0f1b5b68af32 |
children | 8fa2f43cb760 |
comparison
equal
deleted
inserted
replaced
31491:b606b4bd18f1 | 31492:e4d6cf87aa06 |
---|---|
832 } | 832 } |
833 } | 833 } |
834 | 834 |
835 /* Activate filter (if it isn't already :) ) */ | 835 /* Activate filter (if it isn't already :) ) */ |
836 | 836 |
837 if ( (pdes->activate) && (setup->activated == 0) ) { | 837 if (pdes->activate && !setup->activated && i % setup->ninputs == 0) |
838 pdes->activate(setup->chhandles[i]); | 838 pdes->activate(setup->chhandles[i]); |
839 setup->activated = 1; | |
840 } | |
841 | 839 |
842 } /* All channels/filters done! except for... */ | 840 } /* All channels/filters done! except for... */ |
841 setup->activated = 1; | |
843 | 842 |
844 /* Stereo effect with one channel left. Use same buffer for left | 843 /* Stereo effect with one channel left. Use same buffer for left |
845 * and right. connect it to the second port. | 844 * and right. connect it to the second port. |
846 */ | 845 */ |
847 | 846 |