diff options
author | Adrien SCH <adrien.schwartzentruber@gmail.com> | 2014-02-23 11:27:23 +1100 |
---|---|---|
committer | Matthew Waters <ystreet00@gmail.com> | 2014-02-23 11:34:16 +1100 |
commit | cb05c0e4d8d0315dc28a9f8852257a6750c594cd (patch) | |
tree | 73d8c3b8f6310310a65605f0f7ce6416bbb953a6 | |
parent | 3fe63c9f5d17f08c6a48649e056f24baba32ced7 (diff) |
correct error handling in gstgldownload.c
-rw-r--r-- | gst-libs/gst/gl/gstgldownload.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c index 5e06397..adcf01f 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); |