Fix get-out conditions.
authorgb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Thu, 1 Apr 2010 16:11:54 +0000 (16:11 +0000)
committergb <gb@5584edef-b1fe-4b99-b61b-dd2bab72e969>
Thu, 1 Apr 2010 16:11:54 +0000 (16:11 +0000)
gst-libs/gst/vaapi/gstvaapitexture.c

index 578e4c9..199ea11 100644 (file)
@@ -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;