summaryrefslogtreecommitdiffstats
path: root/video/out/drm_prime.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/drm_prime.c')
-rw-r--r--video/out/drm_prime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/out/drm_prime.c b/video/out/drm_prime.c
index 9335fa8e02..af0e8f7f2a 100644
--- a/video/out/drm_prime.c
+++ b/video/out/drm_prime.c
@@ -86,13 +86,13 @@ int drm_prime_create_framebuffer(struct mp_log *log, int fd,
for (int plane = 0; plane < AV_DRM_MAX_PLANES; plane++) {
drm_prime_add_handle_ref(handle_refs, framebuffer->gem_handles[plane]);
}
- }
+ }
- return 0;
+ return 0;
fail:
- memset(framebuffer, 0, sizeof(*framebuffer));
- return -1;
+ memset(framebuffer, 0, sizeof(*framebuffer));
+ return -1;
}
void drm_prime_destroy_framebuffer(struct mp_log *log, int fd,