From 8e6dea5b74b489318c55d7d5694f27d16ec0f0dd Mon Sep 17 00:00:00 2001 From: gb Date: Thu, 1 Apr 2010 16:11:54 +0000 Subject: [PATCH] Fix get-out conditions. --- gst-libs/gst/vaapi/gstvaapitexture.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapitexture.c b/gst-libs/gst/vaapi/gstvaapitexture.c index 578e4c9..199ea11 100644 --- a/gst-libs/gst/vaapi/gstvaapitexture.c +++ b/gst-libs/gst/vaapi/gstvaapitexture.c @@ -659,11 +659,13 @@ _gst_vaapi_texture_put_surface( } out_unbind_fbo: - success = gl_unbind_framebuffer_object(priv->fbo); + if (!gl_unbind_framebuffer_object(priv->fbo)) + success = FALSE; out_unbind_texture: gl_unbind_texture(&ts); out_reset_context: - success = gl_set_current_context(&old_cs, NULL); + if (!gl_set_current_context(&old_cs, NULL)) + success = FALSE; end: GST_VAAPI_OBJECT_UNLOCK_DISPLAY(texture); return success; -- 2.7.4