gtkgstsink.c: Drop workarounds needed for Windows
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 24 Mar 2023 10:16:35 +0000 (18:16 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 24 Mar 2023 10:50:49 +0000 (18:50 +0800)
commitb5ebe270c3fd1e7338add7ef3410f54bdf62dcfc
tree374617c2201456c7ede5e76e4b37ff129783ddfd
parent627ee674e56938f941af41c5f1833f714b58a6fd
gtkgstsink.c: Drop workarounds needed for Windows

Since we are making GdkGLContext call the core wgl*() functions directly
instead of via libepoxy, drop the workarounds that we needed for notifying
libepoxy that wglMakeCurrent() outside of GDK/GTK was called.

This way, we clean up the code, and as a result, we can use the GstGL
APIs like the other platforms to query what GL api that is to be used.

For ensuring that things work between different threads, we now call
gdk_gl_context_clear_current() in place of calling wglMakeCurrent(xxx,
NULL), so that we make sure that there is no current GL context on a
thread outside of GstGL's thread, which Windows does not like.
modules/media/gtkgstsink.c