diff --git a/gst/hls/gstfragment.c b/gst/hls/gstfragment.c index 2e09e347cf..00a3b4ce34 100644 --- a/gst/hls/gstfragment.c +++ b/gst/hls/gstfragment.c @@ -193,7 +193,7 @@ gst_fragment_set_headers (GstFragment * fragment, GstBuffer ** buffer, return FALSE; for (i = 0; i < count; i++) { - gst_buffer_ref (buffer[i]); + /* We steal the buffers you pass in */ gst_buffer_list_iterator_add (fragment->priv->buffer_iterator, buffer[i]); gst_buffer_list_iterator_add_group (fragment->priv->buffer_iterator); } @@ -216,7 +216,7 @@ gst_fragment_add_buffer (GstFragment * fragment, GstBuffer * buffer) fragment->priv->headers_set = TRUE; GST_DEBUG ("Adding new buffer to the fragment"); - gst_buffer_ref (buffer); + /* We steal the buffers you pass in */ gst_buffer_list_iterator_add (fragment->priv->buffer_iterator, buffer); return TRUE; }