eglglessink: Make sure the buffer is released to the pool if it's the last used one
This commit is contained in:
parent
1870a4d58b
commit
71768daceb
@ -3501,6 +3501,7 @@ gst_egl_image_buffer_pool_acquire_buffer (GstBufferPool * bpool,
|
||||
GST_BUFFER_POOL_CLASS
|
||||
(gst_egl_image_buffer_pool_parent_class)->acquire_buffer (bpool,
|
||||
buffer, params);
|
||||
gst_object_replace ((GstObject **) &oldbuf->pool, (GstObject *) pool);
|
||||
gst_buffer_unref (oldbuf);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user