mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
[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:
parent
d9c6eaf72f
commit
dec44e571b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue