From 181b5457132099e72436e74c91f55f79cd5ca6e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Falgueras=20Garc=C3=ADa?= Date: Mon, 27 Feb 2023 08:23:38 +0100 Subject: [PATCH] gldisplay: Remove unused code The code related with environment variable `GST_GL_PLATFORM` is unused since commit 33c60bdbf9ae2fd2e88099ad89ad836b8b78c2f5. Part-of: --- .../gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c index bcc600eb17..bf220edcef 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstgldisplay.c @@ -281,14 +281,8 @@ static GstGLDisplayType gst_gl_display_type_from_environment (void) { const char *env = g_getenv ("GST_GL_WINDOW"); - const char *platform = g_getenv ("GST_GL_PLATFORM"); - init_debug (); - - GST_INFO ("creating a display, user choice:%s (platform: %s)", - GST_STR_NULL (env), GST_STR_NULL (platform)); - - if (!env && !platform) + if (!env) return GST_GL_DISPLAY_TYPE_ANY; if (env) {