eglglessink: Make sure the buffer is released to the pool if it's the last used one

This commit is contained in:
Sebastian Dröge 2013-03-12 19:36:12 +01:00
parent 1870a4d58b
commit 71768daceb

View file

@ -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);
}