[888/906] correct error handling in gstgldownload.c
authorAdrien SCH <adrien.schwartzentruber@gmail.com>
Sun, 23 Feb 2014 00:27:23 +0000 (11:27 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:33 +0000 (19:31 +0000)
gst-libs/gst/gl/gstgldownload.c

index 5e06397e9ba41af8f974b86864038c887d9d35ff..adcf01fdd5263c0cfa2ff6c20cd57705301c9c9d 100644 (file)
@@ -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);