diff options
author | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-06 12:29:26 +0000 |
---|---|---|
committer | Sebastian Dröge <slomo@circular-chaos.org> | 2007-12-06 12:29:26 +0000 |
commit | eaa01e7c4255cc133cdfcbdce5af330263ac5d47 (patch) | |
tree | 151cce448aabcb366f773fa9d481ead25c45f834 | |
parent | ba36c8183bef6cacc7a2e8dc3367f2d53f5ca45b (diff) |
gst/filter/: Sync the GObject properties with the controller even in passthrough mode to get consistent property values.
Original commit message from CVS:
* gst/filter/gstbpwsinc.c: (bpwsinc_transform):
* gst/filter/gstlpwsinc.c: (lpwsinc_transform):
Sync the GObject properties with the controller even in passthrough
mode to get consistent property values.
-rw-r--r-- | gst/audiofx/audiowsincband.c | 9 | ||||
-rw-r--r-- | gst/audiofx/audiowsinclimit.c | 8 |
2 files changed, 8 insertions, 9 deletions
diff --git a/gst/audiofx/audiowsincband.c b/gst/audiofx/audiowsincband.c index c11bd59a..24a89abd 100644 --- a/gst/audiofx/audiowsincband.c +++ b/gst/audiofx/audiowsincband.c @@ -590,16 +590,15 @@ bpwsinc_transform (GstBaseTransform * base, GstBuffer * inbuf, gint output_samples = input_samples; gint diff; - /* don't process data in passthrough-mode */ - if (gst_base_transform_is_passthrough (base)) - return GST_FLOW_OK; - /* FIXME: subdivide GST_BUFFER_SIZE into small chunks for smooth fades */ timestamp = GST_BUFFER_TIMESTAMP (outbuf); - if (GST_CLOCK_TIME_IS_VALID (timestamp)) gst_object_sync_values (G_OBJECT (self), timestamp); + /* don't process data in passthrough-mode */ + if (gst_base_transform_is_passthrough (base)) + return GST_FLOW_OK; + if (!self->have_kernel) bpwsinc_build_kernel (self); diff --git a/gst/audiofx/audiowsinclimit.c b/gst/audiofx/audiowsinclimit.c index 32de5f06..b4053714 100644 --- a/gst/audiofx/audiowsinclimit.c +++ b/gst/audiofx/audiowsinclimit.c @@ -531,15 +531,15 @@ lpwsinc_transform (GstBaseTransform * base, GstBuffer * inbuf, gint output_samples = input_samples; gint diff; - /* don't process data in passthrough-mode */ - if (gst_base_transform_is_passthrough (base)) - return GST_FLOW_OK; - /* FIXME: subdivide GST_BUFFER_SIZE into small chunks for smooth fades */ timestamp = GST_BUFFER_TIMESTAMP (outbuf); if (GST_CLOCK_TIME_IS_VALID (timestamp)) gst_object_sync_values (G_OBJECT (self), timestamp); + /* don't process data in passthrough-mode */ + if (gst_base_transform_is_passthrough (base)) + return GST_FLOW_OK; + if (!self->have_kernel) lpwsinc_build_kernel (self); |