mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-21 21:46:22 +00:00
hlsdemux: Only unref pending buffer if there is one
This commit is contained in:
parent
940576244c
commit
fc38c22f1b
1 changed files with 2 additions and 1 deletions
|
@ -972,7 +972,8 @@ _src_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
||||||
demux->pending_buffer = NULL;
|
demux->pending_buffer = NULL;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
gst_buffer_unref (demux->pending_buffer);
|
if (demux->pending_buffer)
|
||||||
|
gst_buffer_unref (demux->pending_buffer);
|
||||||
demux->pending_buffer = NULL;
|
demux->pending_buffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue