From dde4db3b3e9c383936eb3e33041c3ebe9de13dcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 9 Dec 2016 14:51:52 +0100 Subject: [PATCH] libs: surface: fix error handling code style --- gst-libs/gst/vaapi/gstvaapisurface_drm.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapisurface_drm.c b/gst-libs/gst/vaapi/gstvaapisurface_drm.c index 73df5af0dd..8c0f8f93b2 100644 --- a/gst-libs/gst/vaapi/gstvaapisurface_drm.c +++ b/gst-libs/gst/vaapi/gstvaapisurface_drm.c @@ -45,12 +45,16 @@ gst_vaapi_surface_get_drm_buf_handle (GstVaapiSurface * surface, guint type) /* ERRORS */ error_derive_image: - GST_ERROR ("failed to extract image handle from surface"); - return NULL; + { + GST_ERROR ("failed to extract image handle from surface"); + return NULL; + } error_alloc_export_buffer: - GST_ERROR ("failed to allocate export buffer proxy"); - gst_vaapi_object_unref (image); - return NULL; + { + GST_ERROR ("failed to allocate export buffer proxy"); + gst_vaapi_object_unref (image); + return NULL; + } } /**