From f04ee6e996e2291efe3ceeb7ce6e80ec941c5567 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 21 Nov 2007 09:56:54 +0000 Subject: [PATCH] gst/filter/: Post a GST_MESSAGE_LATENCY if the latency changes. 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 | 2 ++ gst/audiofx/audiowsinclimit.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gst/audiofx/audiowsincband.c b/gst/audiofx/audiowsincband.c index bf399cb..c11bd59 100644 --- a/gst/audiofx/audiowsincband.c +++ b/gst/audiofx/audiowsincband.c @@ -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; diff --git a/gst/audiofx/audiowsinclimit.c b/gst/audiofx/audiowsinclimit.c index 0db1a74..32de5f0 100644 --- a/gst/audiofx/audiowsinclimit.c +++ b/gst/audiofx/audiowsinclimit.c @@ -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; -- 2.7.4