hlsdemux: set playlist to NULL after unreffing it to avoid a double-unref in the dispose

This commit is contained in:
Youness Alaoui 2011-09-08 20:29:42 +00:00 committed by Sebastian Dröge
parent 84e67767a3
commit 609bdd6642

View file

@ -463,6 +463,7 @@ gst_hls_demux_sink_event (GstPad * pad, GstEvent * event)
playlist = gst_hls_src_buf_to_utf8_playlist ((gchar *)
GST_BUFFER_DATA (demux->playlist), GST_BUFFER_SIZE (demux->playlist));
gst_buffer_unref (demux->playlist);
demux->playlist = NULL;
if (playlist == NULL) {
GST_WARNING_OBJECT (demux, "Error validating first playlist.");
} else if (!gst_m3u8_client_update (demux->client, playlist)) {