matroskademux: Unref the buffer and not the memory address of the buffer

This commit is contained in:
Sebastian Dröge 2009-02-22 19:25:39 +01:00
parent bfcf84a3eb
commit a7c2b13543

View file

@ -3864,7 +3864,7 @@ gst_matroska_demux_check_subtitle_buffer (GstElement * element,
GST_BUFFER_SIZE (newbuf) = strlen (utf8); GST_BUFFER_SIZE (newbuf) = strlen (utf8);
gst_buffer_copy_metadata (newbuf, *buf, gst_buffer_copy_metadata (newbuf, *buf,
GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_FLAGS); GST_BUFFER_COPY_TIMESTAMPS | GST_BUFFER_COPY_FLAGS);
gst_buffer_unref (buf); gst_buffer_unref (*buf);
*buf = newbuf; *buf = newbuf;
return GST_FLOW_OK; return GST_FLOW_OK;