From 2526c7b286d85998f0a9b9f1dccce0dcab74c0cb Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 17 Feb 2015 11:41:27 -0300 Subject: [PATCH] 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. --- ext/smoothstreaming/gstmssdemux.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/smoothstreaming/gstmssdemux.c b/ext/smoothstreaming/gstmssdemux.c index 5c163d857f..90cfac1c11 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) {