summaryrefslogtreecommitdiffstats
path: root/video/out/vo.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-29 00:25:08 +0100
committerwm4 <wm4@nowhere>2014-03-29 00:25:08 +0100
commitbd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2 (patch)
treeaa7ecd5d7a7662130c8a25d3dd569ac6c50624c2 /video/out/vo.c
parentfdeda359f7b060ec0a926eccb86c01b736a1ee16 (diff)
downloadmpv-bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2.tar.bz2
mpv-bd0618f01f1331c1ba0a3b2bb65975b5a21fe2e2.tar.xz
video/out: remove legacy colorspace stuff
Reduce most dependencies on struct mp_csp_details, which was a bad first attempt at dealing with colorspace stuff. Instead, consistently use mp_image_params. Code which retrieves colorspace matrices from csputils.c still uses this type, though.
Diffstat (limited to 'video/out/vo.c')
-rw-r--r--video/out/vo.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 66c148135d..340817633d 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -450,16 +450,6 @@ int vo_reconfig(struct vo *vo, struct mp_image_params *params, int flags)
vo->waiting_mpi = NULL;
vo->redrawing = false;
vo->hasframe = false;
- if (vo->config_ok) {
- // Legacy
- struct mp_csp_details csp;
- if (vo_control(vo, VOCTRL_GET_YUV_COLORSPACE, &csp) > 0) {
- csp.levels_in = params->colorlevels;
- csp.levels_out = params->outputlevels;
- csp.format = params->colorspace;
- vo_control(vo, VOCTRL_SET_YUV_COLORSPACE, &csp);
- }
- }
return ret;
}