diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2015-12-01 19:57:10 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2015-12-01 19:58:25 +0200 |
commit | 2f3eb47a954ec0be764965b807182a63950cab4e (patch) | |
tree | 23d32010cd3cbf0a75935b194d6967b74a643cde | |
parent | 43155807cdbe5d2d74832b5c7444205244a57531 (diff) |
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
-rw-r--r-- | gst-libs/gst/audio/gstaudiobasesrc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstaudiobasesrc.c b/gst-libs/gst/audio/gstaudiobasesrc.c index b529b76e0..1f0dc76a0 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 */ |