From: Sebastian Dröge Date: Tue, 28 Feb 2017 10:34:30 +0000 (+0200) Subject: glcolorconvert: Check return value of gst_gl_context_check_framebuffer_status() X-Git-Tag: 1.19.3~511^2~1989^2~135 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5ea12a471bc80cef1b6e7c29d5e3909e8aa1a19;p=platform%2Fupstream%2Fgstreamer.git glcolorconvert: Check return value of gst_gl_context_check_framebuffer_status() CID 1401588 --- diff --git a/gst-libs/gst/gl/gstglcolorconvert.c b/gst-libs/gst/gl/gstglcolorconvert.c index 0bf6b469e9..17138614f2 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; }