summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapisurface_drm.c
diff options
context:
space:
mode:
authorVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-05-26 11:41:25 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-05-26 11:43:51 +0200
commit372a03a9e38acbf435eb80bf31d9a9844069e504 (patch)
treeca1624fddfde97a000cbe60555fd862ad5a6b84d /gst-libs/gst/vaapi/gstvaapisurface_drm.c
parent101e31df83363ba89221ca1b87287509c54ad19a (diff)
gstvaapisurface_drm: fix code-style
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapisurface_drm.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapisurface_drm.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapisurface_drm.c b/gst-libs/gst/vaapi/gstvaapisurface_drm.c
index 371f05dc..f4364a33 100644
--- a/gst-libs/gst/vaapi/gstvaapisurface_drm.c
+++ b/gst-libs/gst/vaapi/gstvaapisurface_drm.c
@@ -36,14 +36,13 @@ gst_vaapi_surface_get_drm_buf_handle (GstVaapiSurface * surface, guint type)
if (!image)
goto error_derive_image;
- if (type == GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF)
- proxy =
- gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
- image->internal_image.buf, type, NULL, NULL);
- else
- proxy =
- gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
- image->internal_image.buf, type, gst_vaapi_object_unref, image);
+ if (type == GST_VAAPI_BUFFER_MEMORY_TYPE_DMA_BUF) {
+ proxy = gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
+ image->internal_image.buf, type, NULL, NULL);
+ } else {
+ proxy = gst_vaapi_buffer_proxy_new_from_object (GST_VAAPI_OBJECT (surface),
+ image->internal_image.buf, type, gst_vaapi_object_unref, image);
+ }
if (!proxy)
goto error_alloc_export_buffer;