hlsdemux: Add support for URI queries

This commit is contained in:
Andoni Morales Alastruey 2011-03-12 13:00:06 +01:00 committed by Sebastian Dröge
parent 5daae4bb18
commit cd0aeb2403

View file

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