projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b44647c
)
audiodynamic: don't set process function too early
author
René Stadler
<rene.stadler@collabora.co.uk>
Fri, 28 Oct 2011 09:16:38 +0000
(11:16 +0200)
committer
René Stadler
<rene.stadler@collabora.co.uk>
Fri, 28 Oct 2011 09:25:37 +0000
(11:25 +0200)
GstAudioInfo and GstAudioFilter have been changed so that this code doesn't
crash anymore when a property is set in NULL state.
gst/audiofx/audiodynamic.c
patch
|
blob
|
history
diff --git
a/gst/audiofx/audiodynamic.c
b/gst/audiofx/audiodynamic.c
index
f8d77a3
..
2fdf7b3
100644
(file)
--- a/
gst/audiofx/audiodynamic.c
+++ b/
gst/audiofx/audiodynamic.c
@@
-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 +=