summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-02-28 10:34:30 (GMT)
committerSebastian Dröge <sebastian@centricular.com>2017-02-28 10:34:30 (GMT)
commitfef775d703572d4f0cee55e2a1feb4a1c93184b8 (patch)
tree322c235ef8a0c8d59755555bc33ddea40e336b9d
parent9bd30e0277fba9f91ec5f459659a754e91f60837 (diff)
downloadgst-plugins-bad-fef775d703572d4f0cee55e2a1feb4a1c93184b8.tar.gz
gst-plugins-bad-fef775d703572d4f0cee55e2a1feb4a1c93184b8.tar.xz
glcolorconvert: Check return value of gst_gl_context_check_framebuffer_status()
CID 1401588
-rw-r--r--gst-libs/gst/gl/gstglcolorconvert.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c
index 0bf6b46..1713861 100644
--- a/gst-libs/gst/gl/gstglcolorconvert.c
+++ b/gst-libs/gst/gl/gstglcolorconvert.c
@@ -2453,6 +2453,7 @@ _do_convert_draw (GstGLContext * context, GstGLColorConvert * convert)
struct ConvertInfo *c_info = &convert->priv->convert_info;
guint out_width, out_height;
gint i;
+ gboolean ret = TRUE;
GLint viewport_dim[4] = { 0 };
@@ -2525,9 +2526,10 @@ _do_convert_draw (GstGLContext * context, GstGLColorConvert * convert)
gl->Viewport (viewport_dim[0], viewport_dim[1], viewport_dim[2],
viewport_dim[3]);
- gst_gl_context_check_framebuffer_status (context);
+ if (!gst_gl_context_check_framebuffer_status (context))
+ ret = FALSE;
gst_gl_context_clear_framebuffer (context);
- return TRUE;
+ return ret;
}