From 2f3eb47a954ec0be764965b807182a63950cab4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 1 Dec 2015 19:57:10 +0200 Subject: [PATCH] audiobasesrc: Post latency message on the bus after set_caps() The latency is only known once the caps are known, and might change whenever the caps are changing. https://bugzilla.gnome.org/show_bug.cgi?id=758911 --- gst-libs/gst/audio/gstaudiobasesrc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst-libs/gst/audio/gstaudiobasesrc.c b/gst-libs/gst/audio/gstaudiobasesrc.c index b529b76e0a..1f0dc76a09 100644 --- a/gst-libs/gst/audio/gstaudiobasesrc.c +++ b/gst-libs/gst/audio/gstaudiobasesrc.c @@ -583,6 +583,9 @@ gst_audio_base_src_setcaps (GstBaseSrc * bsrc, GstCaps * caps) g_object_notify (G_OBJECT (src), "actual-buffer-time"); g_object_notify (G_OBJECT (src), "actual-latency-time"); + gst_element_post_message (GST_ELEMENT_CAST (bsrc), + gst_message_new_latency (GST_OBJECT (bsrc))); + return TRUE; /* ERRORS */