From c0807e98fbc808b50d58ae88b4ae05b0cd956e69 Mon Sep 17 00:00:00 2001 From: Christoph Heinrich Date: Tue, 21 Feb 2023 03:07:51 +0100 Subject: options: remove explicit initialization of integers to 0 --- video/out/drm_common.c | 1 - video/out/vo_sixel.c | 6 ------ video/out/vulkan/context_display.c | 6 +----- 3 files changed, 1 insertion(+), 12 deletions(-) (limited to 'video') diff --git a/video/out/drm_common.c b/video/out/drm_common.c index 09494d6317..470cab4668 100644 --- a/video/out/drm_common.c +++ b/video/out/drm_common.c @@ -109,7 +109,6 @@ const struct m_sub_options drm_conf = { .drm_atomic = 1, .draw_plane = DRM_OPTS_PRIMARY_PLANE, .drmprime_video_plane = DRM_OPTS_OVERLAY_PLANE, - .vrr_enabled = 0, }, .size = sizeof(struct drm_opts), }; diff --git a/video/out/vo_sixel.c b/video/out/vo_sixel.c index d052e7dbd9..873c7875cc 100644 --- a/video/out/vo_sixel.c +++ b/video/out/vo_sixel.c @@ -587,17 +587,11 @@ const struct vo_driver video_out_sixel = { .priv_size = sizeof(struct priv), .priv_defaults = &(const struct priv) { .opts.diffuse = DIFFUSE_AUTO, - .opts.width = 0, - .opts.height = 0, .opts.reqcolors = 256, .opts.threshold = -1, .opts.fixedpal = true, - .opts.top = 0, - .opts.left = 0, .opts.pad_y = -1, .opts.pad_x = -1, - .opts.rows = 0, - .opts.cols = 0, .opts.config_clear = true, .opts.alt_screen = true, }, diff --git a/video/out/vulkan/context_display.c b/video/out/vulkan/context_display.c index 4568f1dc46..da801dd921 100644 --- a/video/out/vulkan/context_display.c +++ b/video/out/vulkan/context_display.c @@ -274,11 +274,7 @@ const struct m_sub_options vulkan_display_conf = { {0} }, .size = sizeof(struct vulkan_display_opts), - .defaults = &(struct vulkan_display_opts) { - .display = 0, - .mode = 0, - .plane = 0, - }, + .defaults = &(struct vulkan_display_opts) {0}, }; struct priv { -- cgit v1.2.3