gst/filter/: Sync the GObject properties with the controller even in passthrough...
authorSebastian Dröge <slomo@circular-chaos.org>
Thu, 6 Dec 2007 12:29:26 +0000 (12:29 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Thu, 6 Dec 2007 12:29:26 +0000 (12:29 +0000)
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.

gst/audiofx/audiowsincband.c
gst/audiofx/audiowsinclimit.c

index c11bd59..24a89ab 100644 (file)
@@ -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);
 
index 32de5f0..b405371 100644 (file)
@@ -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);