From 1525fa8bad00861bc1c20260d99fce9a3c28f5eb Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Mon, 28 Apr 2014 15:15:20 +0100 Subject: [PATCH] gl: use gst_gl_platform_from_string because we support gl shareList on all platforms --- ext/gl/gstgltestsrc.c | 4 +--- gst-libs/gst/gl/gstglfilter.c | 4 +--- gst-libs/gst/gl/gstglmixer.c | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/ext/gl/gstgltestsrc.c b/ext/gl/gstgltestsrc.c index 4fb30647ef..b7b2792a8e 100644 --- a/ext/gl/gstgltestsrc.c +++ b/ext/gl/gstgltestsrc.c @@ -645,9 +645,7 @@ gst_gl_test_src_decide_allocation (GstBaseSrc * basesrc, GstQuery * query) GST_DEBUG ("got GL context handle 0x%p with type %s and apis %s", handle, type, apis); - if (g_strcmp0 (type, "glx") == 0) - platform = GST_GL_PLATFORM_GLX; - + platform = gst_gl_platform_from_string (type); gl_apis = gst_gl_api_from_string (apis); if (gl_apis && platform) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 3f900712f0..1775c46814 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -929,9 +929,7 @@ gst_gl_filter_decide_allocation (GstBaseTransform * trans, GstQuery * query) GST_DEBUG ("got GL context handle 0x%p with type %s and apis %s", handle, type, apis); - if (g_strcmp0 (type, "glx") == 0) - platform = GST_GL_PLATFORM_GLX; - + platform = gst_gl_platform_from_string (type); gl_apis = gst_gl_api_from_string (apis); if (gl_apis && platform) diff --git a/gst-libs/gst/gl/gstglmixer.c b/gst-libs/gst/gl/gstglmixer.c index fbfbda8ebf..238f4e1030 100644 --- a/gst-libs/gst/gl/gstglmixer.c +++ b/gst-libs/gst/gl/gstglmixer.c @@ -1146,9 +1146,7 @@ gst_gl_mixer_decide_allocation (GstGLMixer * mix, GstQuery * query) GST_DEBUG ("got GL context handle 0x%p with type %s and apis %s", handle, type, apis); - if (g_strcmp0 (type, "glx") == 0) - platform = GST_GL_PLATFORM_GLX; - + platform = gst_gl_platform_from_string (type); gl_apis = gst_gl_api_from_string (apis); if (gl_apis && platform)