summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Waters <matthew@centricular.com>2016-02-22 21:03:14 +1100
committerMatthew Waters <matthew@centricular.com>2016-02-22 21:03:28 +1100
commit98752fde48ccc06bfb2c4ccb05e17f74a6a1d967 (patch)
tree29e1f22ba96b3dc526da5a5f1a3da0de7f51783f
parent2d2878125ef17f140d15a5b44359cd2929901608 (diff)
gl: fix the build
2d287812 was incomplete
-rw-r--r--ext/gl/gstglstereosplit.c4
-rw-r--r--gst-libs/gst/gl/gstglbasefilter.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/gl/gstglstereosplit.c b/ext/gl/gstglstereosplit.c
index 578622006..fc93b1ac4 100644
--- a/ext/gl/gstglstereosplit.c
+++ b/ext/gl/gstglstereosplit.c
@@ -586,7 +586,7 @@ ensure_context (GstGLStereoSplit * self)
{
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;
}
@@ -597,7 +597,7 @@ unsupported_gl_api:
GstGLAPI gl_api = gst_gl_context_get_gl_api (self->context);
gchar *gl_api_str = gst_gl_api_to_string (gl_api);
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,
supported_gl_api_str), (NULL));
diff --git a/gst-libs/gst/gl/gstglbasefilter.c b/gst-libs/gst/gl/gstglbasefilter.c
index 2fcea266b..b45b4eaee 100644
--- a/gst-libs/gst/gl/gstglbasefilter.c
+++ b/gst-libs/gst/gl/gstglbasefilter.c
@@ -392,7 +392,7 @@ gst_gl_base_filter_decide_allocation (GstBaseTransform * trans,
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)
goto unsupported_gl_api;
}