mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-19 13:55:41 +00:00
hlsdemux: add support for redirections
This commit is contained in:
parent
c4140f9c25
commit
28609ca93c
1 changed files with 3 additions and 1 deletions
|
@ -470,6 +470,8 @@ gst_hls_demux_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
query = gst_query_new_uri ();
|
||||
ret = gst_pad_peer_query (demux->sinkpad, query);
|
||||
if (ret) {
|
||||
gst_query_parse_uri_redirection (query, &uri);
|
||||
if (uri == NULL)
|
||||
gst_query_parse_uri (query, &uri);
|
||||
gst_hls_demux_set_location (demux, uri);
|
||||
g_free (uri);
|
||||
|
|
Loading…
Reference in a new issue