mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
hlsdemux: Add support for URI queries
This commit is contained in:
parent
5daae4bb18
commit
cd0aeb2403
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue