summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-12-09 13:19:11 -0300
committerSebastian Dröge <sebastian@centricular.com>2017-04-03 11:35:51 +0300
commit45a6449e64839ed9834dc5b1303150906576d5d9 (patch)
treeb4cd39cbc34564ce305ccd1794e39f0a936a7a98
parent8cf858fb27919e1d631223375f81b98055623733 (diff)
downloadgstreamer-plugins-bad-45a6449e64839ed9834dc5b1303150906576d5d9.tar.gz
adaptivedemux: set uridownloader's parent
Allows internal http source to request contexts and share cookies with the pipeline in case the server imposes any restriction based on cookies.
-rw-r--r--gst-libs/gst/adaptivedemux/gstadaptivedemux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
index 1c34b6d37..6b511bfe1 100644
--- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
+++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c
@@ -440,6 +440,7 @@ gst_adaptive_demux_init (GstAdaptiveDemux * demux,
demux->priv = GST_ADAPTIVE_DEMUX_GET_PRIVATE (demux);
demux->priv->input_adapter = gst_adapter_new ();
demux->downloader = gst_uri_downloader_new ();
+ gst_uri_downloader_set_parent (demux->downloader, GST_ELEMENT_CAST (demux));
demux->stream_struct_size = sizeof (GstAdaptiveDemuxStream);
demux->priv->segment_seqnum = gst_util_seqnum_next ();
demux->have_group_id = FALSE;