mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
parent
e71e492413
commit
7e108f4763
2 changed files with 3 additions and 3 deletions
|
@ -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));
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue