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