[404/906] glupload: repair external_opengl_context property
authorJulien Isorce <julien.isorce@gmail.com>
Tue, 17 Nov 2009 21:54:39 +0000 (22:54 +0100)
committerMatthew Waters <ystreet00@gmail.com>
Sat, 15 Mar 2014 17:36:38 +0000 (18:36 +0100)
qglwtextureshare now works again. In this example,
the pipeline is src ! glupload ! fakesink.
So in this case the glupload element is a sink in
terms of gl chain.
But the problem is still there if the pipeline is
src ! glupload ! glfilter ! fakesink
(it's the case in sdlshare and cluttershare examples)
because since recent changes about how the gstgldisplay
is transmitted to the gl element, the context is usually
created by the sink in terms of gl chain.
A solution would be to also install this property on glfilter.

gst/gl/gstglupload.c

index 675a3ae..c85beb9 100644 (file)
@@ -288,7 +288,7 @@ gst_gl_upload_start (GstBaseTransform * bt)
     else {
       /* this gl filter is a sink in terms of the gl chain */
       upload->display = gst_gl_display_new ();
-      gst_gl_display_create_context (upload->display, 0);
+      gst_gl_display_create_context (upload->display, upload->external_gl_context);
     }
   }