mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +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;
|
||||
if (*buffer == buf)
|
||||
break;
|
||||
gst_object_replace ((GstObject **) & (*buffer)->pool, (GstObject *) pool);
|
||||
gst_buffer_unref (*buffer);
|
||||
*buffer = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue