summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-11-21 09:56:54 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-11-21 09:56:54 +0000
commit9fd560ffcae003bff7f522146db4aa880a379677 (patch)
tree4323d279a462ac4bfe34a916e8b9e805687b4f74
parent1b2fa58301a32618257032a6350342205446c9cb (diff)
downloadgst-plugins-bad-9fd560ffcae003bff7f522146db4aa880a379677.tar.gz
gst-plugins-bad-9fd560ffcae003bff7f522146db4aa880a379677.tar.bz2
gst-plugins-bad-9fd560ffcae003bff7f522146db4aa880a379677.zip
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.
-rw-r--r--ChangeLog6
-rw-r--r--gst/filter/gstbpwsinc.c2
-rw-r--r--gst/filter/gstlpwsinc.c2
3 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2fc1e15c..bc89a7ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-21 Sebastian Dröge <slomo@circular-chaos.org>
+
+ * gst/filter/gstbpwsinc.c: (bpwsinc_set_property):
+ * gst/filter/gstlpwsinc.c: (lpwsinc_set_property):
+ Post a GST_MESSAGE_LATENCY if the latency changes.
+
2007-11-21 Wim Taymans <wim.taymans@gmail.com>
* ext/faac/gstfaac.c: (gst_faac_sink_event):
diff --git a/gst/filter/gstbpwsinc.c b/gst/filter/gstbpwsinc.c
index bf399cbc..c11bd59a 100644
--- a/gst/filter/gstbpwsinc.c
+++ b/gst/filter/gstbpwsinc.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/filter/gstlpwsinc.c b/gst/filter/gstlpwsinc.c
index 0db1a743..32de5f06 100644
--- a/gst/filter/gstlpwsinc.c
+++ b/gst/filter/gstlpwsinc.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;