mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-07 04:11:26 +00:00
audiodynamic: don't set process function too early
GstAudioInfo and GstAudioFilter have been changed so that this code doesn't crash anymore when a property is set in NULL state.
This commit is contained in:
parent
b44647c043
commit
9b94fc3102
1 changed files with 3 additions and 0 deletions
|
@ -185,6 +185,9 @@ gst_audio_dynamic_set_process_function (GstAudioDynamic * filter)
|
|||
{
|
||||
gint func_index;
|
||||
|
||||
if (GST_AUDIO_FILTER_FORMAT (filter) == GST_AUDIO_FORMAT_UNKNOWN)
|
||||
return FALSE;
|
||||
|
||||
func_index = (filter->mode == MODE_COMPRESSOR) ? 0 : 4;
|
||||
func_index += (filter->characteristics == CHARACTERISTICS_HARD_KNEE) ? 0 : 2;
|
||||
func_index +=
|
||||
|
|
Loading…
Reference in a new issue