From cd0aeb2403378b93c7051495e9de1613c182af56 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Sat, 12 Mar 2011 13:00:06 +0100 Subject: [PATCH] hlsdemux: Add support for URI queries --- gst/hls/gsthlsdemux.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst/hls/gsthlsdemux.c b/gst/hls/gsthlsdemux.c index 8e58cc8cd9..20900a5a7e 100644 --- a/gst/hls/gsthlsdemux.c +++ b/gst/hls/gsthlsdemux.c @@ -379,6 +379,14 @@ gst_hls_demux_src_query (GstPad * pad, GstQuery * query) } break; } + case GST_QUERY_URI: + if (hlsdemux->client) { + /* FIXME: Do we answer with the variant playlist, with the current + * playlist or the the uri of the least downlowaded fragment? */ + gst_query_set_uri (query, hlsdemux->client->current->uri); + ret = TRUE; + } + break; default: /* Don't fordward queries upstream because of the special nature of this * "demuxer", which relies on the upstream element only to be feed with the -- 2.34.1