summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2015-09-25 14:47:48 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-12-01 19:58:25 +0200
commit43155807cdbe5d2d74832b5c7444205244a57531 (patch)
treebed3419259916147727e453eeb2044c4f67c9897
parent2c62aad159694b0f4fb1d19297abc4c38650bcb9 (diff)
audiobasesink: Post latency message on the bus after set_caps()
Any latency query before this will not get the correct latency so a new latency query should be triggered once the audio sink know its own latency. Without this the initial latency query from the pipeline arrives too early sometimes and the resulting latency is too short. https://bugzilla.gnome.org/show_bug.cgi?id=758911
-rw-r--r--gst-libs/gst/audio/gstaudiobasesink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstaudiobasesink.c b/gst-libs/gst/audio/gstaudiobasesink.c
index 591da24f7..62fab35ee 100644
--- a/gst-libs/gst/audio/gstaudiobasesink.c
+++ b/gst-libs/gst/audio/gstaudiobasesink.c
@@ -1006,6 +1006,9 @@ gst_audio_base_sink_setcaps (GstBaseSink * bsink, GstCaps * caps)
gst_audio_ring_buffer_debug_spec_buff (spec);
+ gst_element_post_message (GST_ELEMENT_CAST (bsink),
+ gst_message_new_latency (GST_OBJECT (bsink)));
+
return TRUE;
/* ERRORS */