From 6c8eeb448dd1088ee9526861825b443007a84ad4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 23 Apr 2015 17:43:36 +0200 Subject: [PATCH] adaptivedemux: Don't claim to be live when answering the LATENCY query Even for "live" streams we are not live in the GStreamer meaning of the word. We don't produce buffers that are timestamped based on their "capture time" and our clock, but just based on whatever timestamps the stream might contain. Also even if we wanted to claim to be live, that wouldn't work well as we would have to return GST_STATE_CHANGE_NO_PREROLL when going from READY to PAUSED, which we can't. We first need data to know if we are "live" or not. --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 033a434..00fcbed 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1119,13 +1119,7 @@ gst_adaptive_demux_src_query (GstPad * pad, GstObject * parent, break; } case GST_QUERY_LATENCY:{ - gboolean live = FALSE; - - GST_MANIFEST_LOCK (demux); - live = demux->priv->have_manifest && gst_adaptive_demux_is_live (demux); - GST_MANIFEST_UNLOCK (demux); - - gst_query_set_latency (query, live, 0, -1); + gst_query_set_latency (query, FALSE, 0, -1); ret = TRUE; break; } -- 2.7.4