mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
hlsdemux: don't leak the first buffer
This commit is contained in:
parent
ec1d03e1b4
commit
c580ff26a4
1 changed files with 2 additions and 4 deletions
|
@ -378,12 +378,10 @@ gst_hls_demux_chain (GstPad * pad, GstBuffer * buf)
|
|||
{
|
||||
GstHLSDemux *demux = GST_HLS_DEMUX (gst_pad_get_parent (pad));
|
||||
|
||||
if (demux->playlist == NULL) {
|
||||
gst_buffer_ref (buf);
|
||||
if (demux->playlist == NULL)
|
||||
demux->playlist = buf;
|
||||
} else {
|
||||
else
|
||||
demux->playlist = gst_buffer_join (demux->playlist, buf);
|
||||
}
|
||||
|
||||
gst_object_unref (demux);
|
||||
|
||||
|
|
Loading…
Reference in a new issue