From dec44e571b673287f1a97c91b5ddd3ea052ab2ed Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Tue, 17 Nov 2009 22:54:39 +0100 Subject: [PATCH] [404/906] glupload: repair external_opengl_context property 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/gl/gstglupload.c b/gst/gl/gstglupload.c index 675a3ae02d..c85beb9a55 100644 --- a/gst/gl/gstglupload.c +++ b/gst/gl/gstglupload.c @@ -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); } }