libs: surface: fix error handling code style

This commit is contained in:
Víctor Manuel Jáquez Leal 2016-12-09 14:51:52 +01:00
parent 0f819fa190
commit dde4db3b3e

View file

@ -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;
}
}
/**