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
This commit is contained in:
Sebastian Dröge 2015-12-01 19:57:10 +02:00
parent 43155807cd
commit 2f3eb47a95

View file

@ -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 */