summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Santos <thiagoss@osg.samsung.com>2015-02-17 11:41:27 -0300
committerThiago Santos <thiagoss@osg.samsung.com>2015-02-17 11:41:27 -0300
commit2526c7b286d85998f0a9b9f1dccce0dcab74c0cb (patch)
tree39acdfa2bf473303fd68660065a6c52eb660d08b
parenta48a361256a3d18dc1ac2adacce41f73880b94ea (diff)
mssdemux: use correct function to clear fragment info
Just freeing the url won't reset the byte ranges and can lead to wrong ranges being used.
-rw-r--r--ext/smoothstreaming/gstmssdemux.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c
index 5c163d857..90cfac1c1 100644
--- a/ext/smoothstreaming/gstmssdemux.c
+++ b/ext/smoothstreaming/gstmssdemux.c
@@ -286,9 +286,7 @@ gst_mss_demux_stream_update_fragment_info (GstAdaptiveDemuxStream * stream)
GstFlowReturn ret;
gchar *path = NULL;
- g_free (stream->fragment.uri);
- stream->fragment.uri = NULL;
-
+ gst_adaptive_demux_stream_fragment_clear (&stream->fragment);
ret = gst_mss_stream_get_fragment_url (mssstream->manifest_stream, &path);
if (ret == GST_FLOW_OK) {