From: Sebastian Dröge Date: Tue, 12 Mar 2013 18:36:12 +0000 (+0100) Subject: eglglessink: Make sure the buffer is released to the pool if it's the last used one X-Git-Tag: 1.19.3~507^2~13998 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71768dacebd1a12b9851526dd7473f0c8af7f5be;p=platform%2Fupstream%2Fgstreamer.git eglglessink: Make sure the buffer is released to the pool if it's the last used one --- diff --git a/ext/eglgles/gsteglglessink.c b/ext/eglgles/gsteglglessink.c index c32b925618..368de62629 100644 --- a/ext/eglgles/gsteglglessink.c +++ b/ext/eglgles/gsteglglessink.c @@ -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); }