mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
hlsdemux: set playlist to NULL after unreffing it to avoid a double-unref in the dispose
This commit is contained in:
parent
84e67767a3
commit
609bdd6642
1 changed files with 1 additions and 0 deletions
|
@ -463,6 +463,7 @@ gst_hls_demux_sink_event (GstPad * pad, GstEvent * event)
|
||||||
playlist = gst_hls_src_buf_to_utf8_playlist ((gchar *)
|
playlist = gst_hls_src_buf_to_utf8_playlist ((gchar *)
|
||||||
GST_BUFFER_DATA (demux->playlist), GST_BUFFER_SIZE (demux->playlist));
|
GST_BUFFER_DATA (demux->playlist), GST_BUFFER_SIZE (demux->playlist));
|
||||||
gst_buffer_unref (demux->playlist);
|
gst_buffer_unref (demux->playlist);
|
||||||
|
demux->playlist = NULL;
|
||||||
if (playlist == NULL) {
|
if (playlist == NULL) {
|
||||||
GST_WARNING_OBJECT (demux, "Error validating first playlist.");
|
GST_WARNING_OBJECT (demux, "Error validating first playlist.");
|
||||||
} else if (!gst_m3u8_client_update (demux->client, playlist)) {
|
} else if (!gst_m3u8_client_update (demux->client, playlist)) {
|
||||||
|
|
Loading…
Reference in a new issue