mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
gl: use gst_gl_platform_from_string because we support gl shareList on all platforms
This commit is contained in:
parent
c441afdc6b
commit
391661b626
3 changed files with 3 additions and 9 deletions
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue