gl: no need to initialize a frame buffer object to upload an eglimage
authorJulien Isorce <julien.isorce@collabora.co.uk>
Tue, 6 May 2014 10:27:47 +0000 (11:27 +0100)
committerJulien Isorce <julien.isorce@collabora.co.uk>
Tue, 6 May 2014 14:39:12 +0000 (15:39 +0100)
Fix https://bugzilla.gnome.org/show_bug.cgi?id=729588

gst-libs/gst/gl/gstglbufferpool.c

index b3df2a0..a9fbbc9 100644 (file)
@@ -175,6 +175,11 @@ gst_gl_buffer_pool_start (GstBufferPool * pool)
   GstGLBufferPool *glpool = GST_GL_BUFFER_POOL_CAST (pool);
   GstGLBufferPoolPrivate *priv = glpool->priv;
 
+#if GST_GL_HAVE_PLATFORM_EGL
+  if (priv->want_eglimage)
+    return GST_BUFFER_POOL_CLASS (parent_class)->start (pool);
+#endif
+
   if (!gst_gl_upload_init_format (glpool->upload, &priv->info))
     goto upload_error;