eglglessink: Make sure the buffer is released to the pool if it's the last used one
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 Mar 2013 18:36:12 +0000 (19:36 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 12 Mar 2013 18:36:12 +0000 (19:36 +0100)
ext/eglgles/gsteglglessink.c

index c32b9256185f0b7096e1b1eaf2695d119fdb81fe..368de62629ea8d1804612a5cb47d936cb486b3a5 100644 (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);
   }