gl: fix the build

2d287812 was incomplete
This commit is contained in:
Matthew Waters 2016-02-22 21:03:14 +11:00 committed by Tim-Philipp Müller
parent e71e492413
commit 7e108f4763
2 changed files with 3 additions and 3 deletions

View file

@ -586,7 +586,7 @@ ensure_context (GstGLStereoSplit * self)
{ {
GstGLAPI current_gl_api = gst_gl_context_get_gl_api (self->context); GstGLAPI current_gl_api = gst_gl_context_get_gl_api (self->context);
if ((current_gl_api & SUPPORTED_GL_APIS) == 0) if ((current_gl_api & (SUPPORTED_GL_APIS)) == 0)
goto unsupported_gl_api; goto unsupported_gl_api;
} }
@ -597,7 +597,7 @@ unsupported_gl_api:
GstGLAPI gl_api = gst_gl_context_get_gl_api (self->context); GstGLAPI gl_api = gst_gl_context_get_gl_api (self->context);
gchar *gl_api_str = gst_gl_api_to_string (gl_api); gchar *gl_api_str = gst_gl_api_to_string (gl_api);
gchar *supported_gl_api_str = gst_gl_api_to_string (SUPPORTED_GL_APIS); gchar *supported_gl_api_str = gst_gl_api_to_string (SUPPORTED_GL_APIS);
GST_ELEMENT_ERROR (mix, RESOURCE, BUSY, GST_ELEMENT_ERROR (self, RESOURCE, BUSY,
("GL API's not compatible context: %s supported: %s", gl_api_str, ("GL API's not compatible context: %s supported: %s", gl_api_str,
supported_gl_api_str), (NULL)); supported_gl_api_str), (NULL));

View file

@ -392,7 +392,7 @@ gst_gl_base_filter_decide_allocation (GstBaseTransform * trans,
filter); filter);
{ {
GstGLAPI current_gl_api = gst_gl_context_get_gl_api (mix->context); GstGLAPI current_gl_api = gst_gl_context_get_gl_api (filter->context);
if ((current_gl_api & filter_class->supported_gl_api) == 0) if ((current_gl_api & filter_class->supported_gl_api) == 0)
goto unsupported_gl_api; goto unsupported_gl_api;
} }