[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.
This commit is contained in:
Julien Isorce 2009-11-17 22:54:39 +01:00 committed by Matthew Waters
parent d9c6eaf72f
commit dec44e571b

View 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);
}
}