mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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:
parent
43155807cd
commit
2f3eb47a95
1 changed files with 3 additions and 0 deletions
|
@ -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-buffer-time");
|
||||||
g_object_notify (G_OBJECT (src), "actual-latency-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;
|
return TRUE;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
|
|
Loading…
Reference in a new issue