summarylogtreecommitdiffstats
path: root/false_error.patch
blob: a3221138dceaf85a1a7773143b2c5df2d4464715 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ctl_eqaul.c	2013-02-06 22:09:11.000000000 +0100
+++ ctl_equal.c	2013-02-06 22:10:02.000000000 +0100
@@ -263,8 +263,8 @@
 	for(i = 0; i < equal->num_input_controls; i++) {
 		if(equal->control_data->control[i].type == LADSPA_CNTRL_INPUT) {
 			index = equal->control_data->control[i].index;
-			if(equal->klass->PortDescriptors[index] !=
-					(LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL)) {
+			if(equal->klass->PortDescriptors[index] &
+					(LADSPA_PORT_INPUT | LADSPA_PORT_CONTROL) == 0) {
 				SNDERR("Problem with control file %s, %d.", controls, index);
 				return -1;
 			}