From 98752fde48ccc06bfb2c4ccb05e17f74a6a1d967 Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Mon, 22 Feb 2016 21:03:14 +1100 Subject: [PATCH] gl: fix the build 2d287812 was incomplete --- ext/gl/gstglstereosplit.c | 4 ++-- gst-libs/gst/gl/gstglbasefilter.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/gl/gstglstereosplit.c b/ext/gl/gstglstereosplit.c index 5786220063..fc93b1ac41 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 2fcea266bb..b45b4eaee2 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; }