mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 23:18:52 +00:00
libs: surface: fix error handling code style
This commit is contained in:
parent
0f819fa190
commit
dde4db3b3e
1 changed files with 9 additions and 5 deletions
|
@ -45,12 +45,16 @@ gst_vaapi_surface_get_drm_buf_handle (GstVaapiSurface * surface, guint type)
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
error_derive_image:
|
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:
|
error_alloc_export_buffer:
|
||||||
GST_ERROR ("failed to allocate export buffer proxy");
|
{
|
||||||
gst_vaapi_object_unref (image);
|
GST_ERROR ("failed to allocate export buffer proxy");
|
||||||
return NULL;
|
gst_vaapi_object_unref (image);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue