gst/filter/: Post a GST_MESSAGE_LATENCY if the latency changes.
authorSebastian Dröge <slomo@circular-chaos.org>
Wed, 21 Nov 2007 09:56:54 +0000 (09:56 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 21 Nov 2007 09:56:54 +0000 (09:56 +0000)
Original commit message from CVS:
* gst/filter/gstbpwsinc.c: (bpwsinc_set_property):
* gst/filter/gstlpwsinc.c: (lpwsinc_set_property):
Post a GST_MESSAGE_LATENCY if the latency changes.

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

index bf399cb..c11bd59 100644 (file)
@@ -824,6 +824,8 @@ bpwsinc_set_property (GObject * object, guint prop_id, const GValue * value,
         self->kernel_length = val;
         self->latency = val / 2;
         bpwsinc_build_kernel (self);
+        gst_element_post_message (GST_ELEMENT (self),
+            gst_message_new_latency (GST_OBJECT (self)));
       }
       GST_BASE_TRANSFORM_UNLOCK (self);
       break;
index 0db1a74..32de5f0 100644 (file)
@@ -764,6 +764,8 @@ lpwsinc_set_property (GObject * object, guint prop_id, const GValue * value,
         self->kernel_length = val;
         self->latency = val / 2;
         lpwsinc_build_kernel (self);
+        gst_element_post_message (GST_ELEMENT (self),
+            gst_message_new_latency (GST_OBJECT (self)));
       }
       GST_BASE_TRANSFORM_UNLOCK (self);
       break;