diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-04 03:55:38 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-01-22 14:54:55 +0000 |
commit | 66e451f4e6e0d0b259eddfd3673f1aa5ff127726 (patch) | |
tree | 1cc78476cefa222f351b2cf0c22b7d7496f320bb /video/out/vo_xv.c | |
parent | 9dd1a137479a41944b43ba45cdd76d63eca75038 (diff) | |
download | mpv-66e451f4e6e0d0b259eddfd3673f1aa5ff127726.tar.bz2 mpv-66e451f4e6e0d0b259eddfd3673f1aa5ff127726.tar.xz |
csputils: replace mp_colorspace with pl_color_space
Diffstat (limited to 'video/out/vo_xv.c')
-rw-r--r-- | video/out/vo_xv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/vo_xv.c b/video/out/vo_xv.c index 6c776c507b..378602b655 100644 --- a/video/out/vo_xv.c +++ b/video/out/vo_xv.c @@ -401,7 +401,7 @@ static void read_xv_csp(struct vo *vo) ctx->cached_csp = 0; int bt709_enabled; if (xv_get_eq(vo, ctx->xv_port, "bt_709", &bt709_enabled)) - ctx->cached_csp = bt709_enabled == 100 ? MP_CSP_BT_709 : MP_CSP_BT_601; + ctx->cached_csp = bt709_enabled == 100 ? PL_COLOR_SYSTEM_BT_709 : PL_COLOR_SYSTEM_BT_601; } @@ -519,7 +519,7 @@ static int reconfig(struct vo *vo, struct mp_image_params *params) ctx->current_buf = 0; ctx->current_ip_buf = 0; - int is_709 = params->color.space == MP_CSP_BT_709; + int is_709 = params->repr.sys == PL_COLOR_SYSTEM_BT_709; xv_set_eq(vo, ctx->xv_port, "bt_709", is_709 * 200 - 100); read_xv_csp(vo); @@ -652,7 +652,7 @@ static struct mp_image get_xv_buffer(struct vo *vo, int buf_index) if (vo->params) { struct mp_image_params params = *vo->params; if (ctx->cached_csp) - params.color.space = ctx->cached_csp; + params.repr.sys = ctx->cached_csp; mp_image_set_attributes(&img, ¶ms); } |