From 08d71feaa48c589046168ca17d2bbacfde17c70f Mon Sep 17 00:00:00 2001 From: Adrien SCH Date: Sun, 23 Feb 2014 11:27:23 +1100 Subject: [PATCH] [888/906] correct error handling in gstgldownload.c --- gst-libs/gst/gl/gstgldownload.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c index 5e06397e9b..adcf01fdd5 100644 --- a/gst-libs/gst/gl/gstgldownload.c +++ b/gst-libs/gst/gl/gstgldownload.c @@ -640,8 +640,10 @@ _init_download (GstGLContext * context, GstGLDownload * download) GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer); } - if (!gst_gl_context_check_framebuffer_status (context)) + if (!gst_gl_context_check_framebuffer_status (context)) { gst_gl_context_set_error (context, "GL framebuffer status incomplete"); + goto error; + } /* unbind the FBO */ gl->BindFramebuffer (GL_FRAMEBUFFER, 0);