gstreamer_gl (rust) on Windows

Matthew Waters ystreet00 at gmail.com
Tue Feb 1 02:24:04 UTC 2022


Windows is special in that some drivers cannot share OpenGL resources
while any related OpenGL context is active in any thread.

This means, you would need to deactivate glutin's OpenGL context, do the
share, and then reactivate glutin's OpenGL context.

An example of this is available in the qmlglsink code:
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/blob/main/subprojects/gst-plugins-good/ext/qt/gstqtglutility.cc#L263

Cheers
-Matt

On 1/2/22 09:07, Steven Fontaine via gstreamer-devel wrote:
> Apologies for the double-reply, but here's some extra context for that
> last error that might make it more helpful:
>
> Received error from
> /GstPipeline:pipeline0/GstGLSinkBin:glsinkbin0/GstGLUploadElement:gluploadelement0:
>
>     failed to share contexts through wglShareLists 0xaa
>     (debug: Some("../gst-libs/gst/gl/gstglbasefilter.c(608):
>     gst_gl_base_filter_find_gl_context_unlocked ():
>     /GstPipeline:pipeline0/GstGLSinkBin:glsinkbin0/GstGLUploadElement:gluploadelement0"))
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220201/cb4db40c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220201/cb4db40c/attachment.sig>


More information about the gstreamer-devel mailing list