hlsdemux: don't leak the first buffer
This commit is contained in:
parent
ec1d03e1b4
commit
c580ff26a4
@ -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…
x
Reference in New Issue
Block a user