mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
matroskademux: Unref the buffer and not the memory address of the buffer
This commit is contained in:
parent
bfcf84a3eb
commit
a7c2b13543
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue