mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
audiodynamic: remove always-true conditional
func_index is set by the sum of three ternary operators which add, 0:4, 0:2, and 1:0. Minimum value would be 0+0+0=0, and maximum would be 4+2+1=7. The conditional checking if func_index is >= 0 and < 8 will always be true. Removing it. CID 1226442
This commit is contained in:
parent
87c8c163a8
commit
1db92a91de
1 changed files with 2 additions and 6 deletions
|
@ -193,12 +193,8 @@ gst_audio_dynamic_set_process_function (GstAudioDynamic * filter,
|
||||||
func_index += (filter->characteristics == CHARACTERISTICS_HARD_KNEE) ? 0 : 2;
|
func_index += (filter->characteristics == CHARACTERISTICS_HARD_KNEE) ? 0 : 2;
|
||||||
func_index += (GST_AUDIO_INFO_FORMAT (info) == GST_AUDIO_FORMAT_F32) ? 1 : 0;
|
func_index += (GST_AUDIO_INFO_FORMAT (info) == GST_AUDIO_FORMAT_F32) ? 1 : 0;
|
||||||
|
|
||||||
if (func_index >= 0 && func_index < 8) {
|
filter->process = process_functions[func_index];
|
||||||
filter->process = process_functions[func_index];
|
return TRUE;
|
||||||
return TRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return FALSE;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* GObject vmethod implementations */
|
/* GObject vmethod implementations */
|
||||||
|
|
Loading…
Reference in a new issue