summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-07-13 02:50:52 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-08-12 16:41:52 +0200
commit28609ca93c1fc0e536071f2ebd46b1cae41a7d9b (patch)
tree8c80fb14f60be2b7e4f289ba77fa4288e5dcd285
parentc4140f9c258fcfe3003f20bac8ea50e6c97173c7 (diff)
hlsdemux: add support for redirections
-rw-r--r--ext/hls/gsthlsdemux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c
index 2dfb8560a..efa712d5b 100644
--- a/ext/hls/gsthlsdemux.c
+++ b/ext/hls/gsthlsdemux.c
@@ -470,7 +470,9 @@ 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 (query, &uri);
+ 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);
}