summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorChristoph Heinrich <christoph.heinrich@student.tugraz.at>2023-02-21 03:07:51 +0100
committerDudemanguy <random342@airmail.cc>2023-02-21 17:15:17 +0000
commitc0807e98fbc808b50d58ae88b4ae05b0cd956e69 (patch)
treec1461b0e82d1a6a6f8c043926d5d6ffe691066f2 /video/out
parent07545657bf73ebb4da38e26950d5203466298ec1 (diff)
downloadmpv-c0807e98fbc808b50d58ae88b4ae05b0cd956e69.tar.bz2
mpv-c0807e98fbc808b50d58ae88b4ae05b0cd956e69.tar.xz
options: remove explicit initialization of integers to 0
Diffstat (limited to 'video/out')
-rw-r--r--video/out/drm_common.c1
-rw-r--r--video/out/vo_sixel.c6
-rw-r--r--video/out/vulkan/context_display.c6
3 files changed, 1 insertions, 12 deletions
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 {