mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
gstvaapisurface_drm: fix code-style
This commit is contained in:
parent
101e31df83
commit
372a03a9e3
1 changed files with 7 additions and 8 deletions
|
@ -36,14 +36,13 @@ gst_vaapi_surface_get_drm_buf_handle (GstVaapiSurface * surface, guint type)
|
||||||
if (!image)
|
if (!image)
|
||||||
goto error_derive_image;
|
goto error_derive_image;
|
||||||
|
|
||||||
if (type == GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF)
|
if (type == GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF) {
|
||||||
proxy =
|
proxy = gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
|
||||||
gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
|
|
||||||
image->internal_image.buf, type, NULL, NULL);
|
image->internal_image.buf, type, NULL, NULL);
|
||||||
else
|
} else {
|
||||||
proxy =
|
proxy = gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
|
||||||
gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
|
|
||||||
image->internal_image.buf, type, gst_vaapi_object_unref, image);
|
image->internal_image.buf, type, gst_vaapi_object_unref, image);
|
||||||
|
}
|
||||||
if (!proxy)
|
if (!proxy)
|
||||||
goto error_alloc_export_buffer;
|
goto error_alloc_export_buffer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue