mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-06 14:32:31 +00:00
omxvideodec: Make sure the buffer is released to the pool if it's not the one we wanted
This commit is contained in:
parent
ef357cce80
commit
f4ad6e0858
1 changed files with 1 additions and 0 deletions
|
@ -504,6 +504,7 @@ gst_omx_buffer_pool_acquire_buffer (GstBufferPool * bpool,
|
||||||
return ret;
|
return ret;
|
||||||
if (*buffer == buf)
|
if (*buffer == buf)
|
||||||
break;
|
break;
|
||||||
|
gst_object_replace ((GstObject **) & (*buffer)->pool, (GstObject *) pool);
|
||||||
gst_buffer_unref (*buffer);
|
gst_buffer_unref (*buffer);
|
||||||
*buffer = NULL;
|
*buffer = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue