From: Julien Isorce Date: Mon, 28 Apr 2014 14:15:20 +0000 (+0100) Subject: gl: use gst_gl_platform_from_string because we support gl shareList on all platforms X-Git-Tag: 1.19.3~511^2~1989^2~1546 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=391661b62611fba5edcf7ed009c76f9d4d8efd59;p=platform%2Fupstream%2Fgstreamer.git gl: use gst_gl_platform_from_string because we support gl shareList on all platforms --- diff --git a/ext/gl/gstgltestsrc.c b/ext/gl/gstgltestsrc.c index 4fb3064..b7b2792 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 3f90071..1775c46 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 fbfbda8e..238f4e1 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)