From: gb Date: Thu, 1 Apr 2010 16:11:54 +0000 (+0000) Subject: Fix get-out conditions. X-Git-Tag: accepted/trunk/20120822.173359~533 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8e6dea5b74b489318c55d7d5694f27d16ec0f0dd;p=profile%2Fivi%2Fgstreamer-vaapi.git Fix get-out conditions. --- 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;