tagdemux: Unref the actual buffer instead of the memory address of the buffer
This commit is contained in:
parent
9d91e56674
commit
d659e8353d
@ -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…
x
Reference in New Issue
Block a user