mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue