diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gst/audiofx/audioamplify.c | 11 | ||||
-rw-r--r-- | gst/audiofx/audiodynamic.c | 3 | ||||
-rw-r--r-- | gst/audiofx/audioinvert.c | 3 |
4 files changed, 21 insertions, 4 deletions
@@ -1,3 +1,11 @@ +2007-05-06 Sebastian Dröge <slomo@circular-chaos.org> + + * gst/audiofx/audioamplify.c: (gst_audio_amplify_transform_ip): + * gst/audiofx/audiodynamic.c: (gst_audio_dynamic_transform_ip): + * gst/audiofx/audioinvert.c: (gst_audio_invert_transform_ip): + Sync the GObject properties before each processing step to properly + work with the controller. + 2007-05-04 Wim Taymans <wim@fluendo.com> * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_send_keep_alive), diff --git a/gst/audiofx/audioamplify.c b/gst/audiofx/audioamplify.c index e492c022..d573f8fb 100644 --- a/gst/audiofx/audioamplify.c +++ b/gst/audiofx/audioamplify.c @@ -151,14 +151,14 @@ static GstAudioAmplifyProcessFunc processing_functions[2][3] = { (GstAudioAmplifyProcessFunc) gst_audio_amplify_transform_int_clip, (GstAudioAmplifyProcessFunc) gst_audio_amplify_transform_int_wrap_negative, - (GstAudioAmplifyProcessFunc) - gst_audio_amplify_transform_int_wrap_positive}, + (GstAudioAmplifyProcessFunc) + gst_audio_amplify_transform_int_wrap_positive}, { (GstAudioAmplifyProcessFunc) gst_audio_amplify_transform_float_clip, (GstAudioAmplifyProcessFunc) gst_audio_amplify_transform_float_wrap_negative, - (GstAudioAmplifyProcessFunc) - gst_audio_amplify_transform_float_wrap_positive} + (GstAudioAmplifyProcessFunc) + gst_audio_amplify_transform_float_wrap_positive} }; /* GObject vmethod implementations */ @@ -419,6 +419,9 @@ gst_audio_amplify_transform_ip (GstBaseTransform * base, GstBuffer * buf) if (!gst_buffer_is_writable (buf)) return GST_FLOW_OK; + if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buf))) + gst_object_sync_values (G_OBJECT (filter), GST_BUFFER_TIMESTAMP (buf)); + filter->process (filter, GST_BUFFER_DATA (buf), num_samples); return GST_FLOW_OK; diff --git a/gst/audiofx/audiodynamic.c b/gst/audiofx/audiodynamic.c index 3527e34f..583008f1 100644 --- a/gst/audiofx/audiodynamic.c +++ b/gst/audiofx/audiodynamic.c @@ -705,6 +705,9 @@ gst_audio_dynamic_transform_ip (GstBaseTransform * base, GstBuffer * buf) if (!gst_buffer_is_writable (buf)) return GST_FLOW_OK; + if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buf))) + gst_object_sync_values (G_OBJECT (filter), GST_BUFFER_TIMESTAMP (buf)); + filter->process (filter, GST_BUFFER_DATA (buf), num_samples); return GST_FLOW_OK; diff --git a/gst/audiofx/audioinvert.c b/gst/audiofx/audioinvert.c index 508b1788..e762d14c 100644 --- a/gst/audiofx/audioinvert.c +++ b/gst/audiofx/audioinvert.c @@ -245,6 +245,9 @@ gst_audio_invert_transform_ip (GstBaseTransform * base, GstBuffer * buf) if (!gst_buffer_is_writable (buf)) return GST_FLOW_OK; + if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buf))) + gst_object_sync_values (G_OBJECT (filter), GST_BUFFER_TIMESTAMP (buf)); + filter->process (filter, GST_BUFFER_DATA (buf), num_samples); return GST_FLOW_OK; |