1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

options: remove explicit initialization of integers to 0

This commit is contained in:
Christoph Heinrich 2023-02-21 03:07:51 +01:00 committed by Dudemanguy
parent 07545657bf
commit c0807e98fb
6 changed files with 1 additions and 18 deletions

View File

@ -79,7 +79,6 @@ static const struct m_sub_options ao_alsa_conf = {
.defaults = &(const struct ao_alsa_opts) {
.mixer_device = "default",
.mixer_name = "Master",
.mixer_index = 0,
.buffer_time = 100000,
.frags = 4,
},

View File

@ -974,7 +974,6 @@ static const struct MPOpts mp_default_opts = {
.msg_color = true,
.softvol_max = 130,
.softvol_volume = 100,
.softvol_mute = 0,
.gapless_audio = -1,
.wintitle = "${?media-title:${media-title}}${!media-title:No file} - mpv",
.stop_screensaver = 1,
@ -1022,7 +1021,6 @@ static const struct MPOpts mp_default_opts = {
.playlist_pos = -1,
.play_frames = -1,
.rebase_start_time = true,
.keep_open = 0,
.keep_open_pause = true,
.image_display_duration = 1.0,
.stream_id = { { [STREAM_AUDIO] = -1,
@ -1037,9 +1035,7 @@ static const struct MPOpts mp_default_opts = {
.audio_output_format = 0, // AF_FORMAT_UNKNOWN
.playback_speed = 1.,
.pitch_correction = true,
.sub_auto = 0,
.audiofile_auto = -1,
.coverart_auto = 0,
.coverart_whitelist = true,
.osd_bar_visible = true,
.screenshot_template = "mpv-shot%n",

View File

@ -85,7 +85,6 @@ const struct m_sub_options stream_dvb_conf = {
.size = sizeof(dvb_opts_t),
.defaults = &(const dvb_opts_t){
.cfg_prog = NULL,
.cfg_devno = 0,
.cfg_timeout = 30,
},
};

View File

@ -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),
};

View File

@ -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,
},

View File

@ -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 {