mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
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.
This commit is contained in:
parent
ba36c8183b
commit
eaa01e7c42
2 changed files with 9 additions and 10 deletions
|
@ -590,16 +590,15 @@ bpwsinc_transform (GstBaseTransform * base, GstBuffer * inbuf,
|
||||||
gint output_samples = input_samples;
|
gint output_samples = input_samples;
|
||||||
gint diff;
|
gint diff;
|
||||||
|
|
||||||
|
/* 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 */
|
/* don't process data in passthrough-mode */
|
||||||
if (gst_base_transform_is_passthrough (base))
|
if (gst_base_transform_is_passthrough (base))
|
||||||
return GST_FLOW_OK;
|
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);
|
|
||||||
|
|
||||||
if (!self->have_kernel)
|
if (!self->have_kernel)
|
||||||
bpwsinc_build_kernel (self);
|
bpwsinc_build_kernel (self);
|
||||||
|
|
||||||
|
|
|
@ -531,15 +531,15 @@ lpwsinc_transform (GstBaseTransform * base, GstBuffer * inbuf,
|
||||||
gint output_samples = input_samples;
|
gint output_samples = input_samples;
|
||||||
gint diff;
|
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 */
|
/* FIXME: subdivide GST_BUFFER_SIZE into small chunks for smooth fades */
|
||||||
timestamp = GST_BUFFER_TIMESTAMP (outbuf);
|
timestamp = GST_BUFFER_TIMESTAMP (outbuf);
|
||||||
if (GST_CLOCK_TIME_IS_VALID (timestamp))
|
if (GST_CLOCK_TIME_IS_VALID (timestamp))
|
||||||
gst_object_sync_values (G_OBJECT (self), 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)
|
if (!self->have_kernel)
|
||||||
lpwsinc_build_kernel (self);
|
lpwsinc_build_kernel (self);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue