From 3d7b6f15b8f5945546bff6824e7b36035667f7c2 Mon Sep 17 00:00:00 2001 From: Sebastian Dröge Date: Sun, 6 May 2007 21:32:40 +0000 Subject: gst/audiofx/: Sync the GObject properties before each processing step to properly work with the controller. Original commit message from CVS: * 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. --- ChangeLog | 8 ++++++++ gst/audiofx/audioamplify.c | 11 +++++++---- gst/audiofx/audiodynamic.c | 3 +++ gst/audiofx/audioinvert.c | 3 +++ 4 files changed, 21 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index fedfe384..f59002c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2007-05-06 Sebastian Dröge + + * 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 * 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; -- cgit