mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-25 07:26:29 +00:00
tagdemux: Unref the actual buffer instead of the memory address of the buffer
This commit is contained in:
parent
9d91e56674
commit
d659e8353d
1 changed files with 1 additions and 1 deletions
|
@ -1285,7 +1285,7 @@ read_beyond_end:
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (demux, "attempted read beyond end of file");
|
GST_DEBUG_OBJECT (demux, "attempted read beyond end of file");
|
||||||
if (*buffer != NULL) {
|
if (*buffer != NULL) {
|
||||||
gst_buffer_unref (buffer);
|
gst_buffer_unref (*buffer);
|
||||||
*buffer = NULL;
|
*buffer = NULL;
|
||||||
}
|
}
|
||||||
return GST_FLOW_UNEXPECTED;
|
return GST_FLOW_UNEXPECTED;
|
||||||
|
|
Loading…
Reference in a new issue