gst-plugin: sink: Stop preferring GL over GLES with GStreamer 1.24+

GStreamer 1.24 have implemented DRM modifiers negotiation that its lack of we were
working around with using GL on unpatched GStreamer (non-Flatpak builds).

Since GStreamer 1.24 does this and moreover it has disabled DMABuf codepath for
non-GLES we should start preferring GLES with this version always.
This commit is contained in:
Rafał Dzięgiel
2024-04-14 15:47:14 +02:00
parent fe6b3fcf29
commit a9769f9537

View File

@@ -152,7 +152,13 @@ _gl_context_handler_context_realize (GstClapperGLContextHandler *self, GdkGLCont
* See: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1236 */
#if GST_CLAPPER_GL_CONTEXT_HANDLER_HAVE_WAYLAND || GST_CLAPPER_GL_CONTEXT_HANDLER_HAVE_X11_EGL
#if !defined(HAVE_GST_PATCHES) && (defined(__i386__) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64))
preferred_api = GDK_GL_API_GL;
{
guint major = 0, minor = 0, micro = 0, nano = 0;
gst_version (&major, &minor, &micro, &nano);
if (major == 1 && minor < 24)
preferred_api = GDK_GL_API_GL;
}
#endif
#endif