mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 03:30:35 +00:00
Fix get-out conditions.
This commit is contained in:
parent
3ddab3f253
commit
8e6dea5b74
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue