From 92f130997440951272a6147a1b01f1d0de302462 Mon Sep 17 00:00:00 2001 From: James Ross-Gowan Date: Mon, 16 Mar 2015 20:17:22 +1100 Subject: vo_opengl: fix srgb replacement options OPT_REPLACED can't specify option values or multiple options. Change to OPT_REMOVED. Also, target-prim doesn't have an srgb option. BT.709 uses sRGB primaries, so use it instead. --- video/out/gl_video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 104f494c66..ae9df7cad1 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -431,6 +431,7 @@ const struct m_sub_options gl_video_conf = { OPT_REMOVED("cscale-down", "chroma is never downscaled"), OPT_REMOVED("scale-sep", "this is set automatically whenever sane"), OPT_REMOVED("indirect", "this is set automatically whenever sane"), + OPT_REMOVED("srgb", "use target-prim=bt709:target-trc=srgb instead"), OPT_REPLACED("lscale", "scale"), OPT_REPLACED("lscale-down", "scale-down"), @@ -442,7 +443,6 @@ const struct m_sub_options gl_video_conf = { OPT_REPLACED("cparam2", "cscale-param2"), OPT_REPLACED("cradius", "cscale-radius"), OPT_REPLACED("cantiring", "cscale-antiring"), - OPT_REPLACED("srgb", "target-prim=srgb:target-trc=srgb"), OPT_REPLACED("smoothmotion", "interpolation"), OPT_REPLACED("smoothmotion-threshold", "tscale-param1"), -- cgit v1.2.3