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.
This commit is contained in:
Thiago Santos 2015-02-17 11:41:27 -03:00
parent a48a361256
commit 2526c7b286

View file

@ -286,9 +286,7 @@ gst_mss_demux_stream_update_fragment_info (GstAdaptiveDemuxStream * stream)
GstFlowReturn ret; GstFlowReturn ret;
gchar *path = NULL; gchar *path = NULL;
g_free (stream->fragment.uri); gst_adaptive_demux_stream_fragment_clear (&stream->fragment);
stream->fragment.uri = NULL;
ret = gst_mss_stream_get_fragment_url (mssstream->manifest_stream, &path); ret = gst_mss_stream_get_fragment_url (mssstream->manifest_stream, &path);
if (ret == GST_FLOW_OK) { if (ret == GST_FLOW_OK) {