diff options
author | Christoph Heinrich <christoph.heinrich@student.tugraz.at> | 2023-02-20 06:44:22 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-02-21 17:15:17 +0000 |
commit | 4ebfe9851c63c8aa55292c01f23fedd9313ed191 (patch) | |
tree | 348c38e97d60914450b3179ea61e39a30b27464e /video/out | |
parent | 91cc0d8cf6a2cf264c243ca3b3e99b5fd4044c29 (diff) | |
download | mpv-4ebfe9851c63c8aa55292c01f23fedd9313ed191.tar.bz2 mpv-4ebfe9851c63c8aa55292c01f23fedd9313ed191.tar.xz |
options: transition commands from OPT_FLAG to OPT_BOOL
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/d3d11/context.c | 1 | ||||
-rw-r--r-- | video/out/d3d11/hwdec_d3d11va.c | 3 | ||||
-rw-r--r-- | video/out/gpu/user_shaders.c | 1 | ||||
-rw-r--r-- | video/out/gpu/video.c | 1 | ||||
-rw-r--r-- | video/out/placebo/ra_pl.c | 1 |
5 files changed, 4 insertions, 3 deletions
diff --git a/video/out/d3d11/context.c b/video/out/d3d11/context.c index 2d736203fd..a86b574fdd 100644 --- a/video/out/d3d11/context.c +++ b/video/out/d3d11/context.c @@ -221,6 +221,7 @@ static bool d3d11_start_frame(struct ra_swapchain *sw, struct ra_fbo *out_fbo) *out_fbo = (struct ra_fbo) { .tex = p->backbuffer, + .flip = false, .color_space = p->swapchain_csp }; return true; diff --git a/video/out/d3d11/hwdec_d3d11va.c b/video/out/d3d11/hwdec_d3d11va.c index a080e5f618..73c42e94ff 100644 --- a/video/out/d3d11/hwdec_d3d11va.c +++ b/video/out/d3d11/hwdec_d3d11va.c @@ -37,8 +37,7 @@ const struct m_sub_options d3d11va_conf = { {"d3d11va-zero-copy", OPT_BOOL(zero_copy)}, {0} }, - .defaults = &(const struct d3d11va_opts) { - }, + .defaults = &(const struct d3d11va_opts) {0}, .size = sizeof(struct d3d11va_opts) }; diff --git a/video/out/gpu/user_shaders.c b/video/out/gpu/user_shaders.c index 03842377f8..708de87485 100644 --- a/video/out/gpu/user_shaders.c +++ b/video/out/gpu/user_shaders.c @@ -170,6 +170,7 @@ static bool parse_hook(struct mp_log *log, struct bstr *body, *out = (struct gl_user_shader_hook){ .pass_desc = bstr0("(unknown)"), .offset = identity_trans, + .align_offset = false, .width = {{ SZEXP_VAR_W, { .varname = bstr0("HOOKED") }}}, .height = {{ SZEXP_VAR_H, { .varname = bstr0("HOOKED") }}}, .cond = {{ SZEXP_CONST, { .cval = 1.0 }}}, diff --git a/video/out/gpu/video.c b/video/out/gpu/video.c index 90b22dab23..21c7f50910 100644 --- a/video/out/gpu/video.c +++ b/video/out/gpu/video.c @@ -25,7 +25,6 @@ #include <libavutil/common.h> #include <libavutil/lfg.h> -#include "options/m_option.h" #include "video.h" #include "misc/bstr.h" diff --git a/video/out/placebo/ra_pl.c b/video/out/placebo/ra_pl.c index a008e28c5f..c7cf19efdc 100644 --- a/video/out/placebo/ra_pl.c +++ b/video/out/placebo/ra_pl.c @@ -153,6 +153,7 @@ bool mppl_wrap_tex(struct ra *ra, pl_tex pltex, struct ra_tex *out_tex) .downloadable = pltex->params.host_readable, // These don't exist upstream, so just pick something reasonable .src_linear = pltex->params.format->caps & PL_FMT_CAP_LINEAR, + .src_repeat = false, }, .priv = (void *) pltex, }; |