mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-13 17:23:08 +00:00
5de1b169ea
Co-Authored-By: Doron Behar <doron.behar@gmail.com>
14 lines
515 B
Diff
14 lines
515 B
Diff
--- ./ctl_equal.c
|
|
+++ ./ctl_equal.c
|
|
@@ -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;
|
|
}
|