diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-02-17 11:41:27 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-02-17 11:41:27 -0300 |
commit | 2526c7b286d85998f0a9b9f1dccce0dcab74c0cb (patch) | |
tree | 39acdfa2bf473303fd68660065a6c52eb660d08b | |
parent | a48a361256a3d18dc1ac2adacce41f73880b94ea (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.c | 4 |
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) { |