From: Andoni Morales Alastruey Date: Sat, 13 Jul 2013 00:50:52 +0000 (+0200) Subject: hlsdemux: add support for redirections X-Git-Tag: 1.1.4~62 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=28609ca93c1fc0e536071f2ebd46b1cae41a7d9b;p=platform%2Fupstream%2Fgst-plugins-bad.git hlsdemux: add support for redirections --- diff --git a/ext/hls/gsthlsdemux.c b/ext/hls/gsthlsdemux.c index 2dfb856..efa712d 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); }