From 9d0af0681191823608d9bbc290f5f30fc60e228e Mon Sep 17 00:00:00 2001 From: dirb Date: Tue, 21 Jun 2016 10:57:07 -0500 Subject: vo_opengl: add scaler name to the 'Disabling scaler' message Print to the user the name of the scaler that gets disabled rather than just printing its number. --- video/out/opengl/video.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index fc05b9256d..f46fdc1c9f 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -3186,9 +3186,10 @@ static void check_gl_features(struct gl_video *p) if (!have_mglsl) reason = "(GLSL version too old)"; if (reason) { + MP_WARN(p, "Disabling scaler #%d %s %s.\n", n, + p->opts.scaler[n].kernel.name, reason); // p->opts is a copy of p->opts_alloc => we can just mess with it. p->opts.scaler[n].kernel.name = "bilinear"; - MP_WARN(p, "Disabling scaler #%d %s.\n", n, reason); if (n == SCALER_TSCALE) p->opts.interpolation = 0; } -- cgit v1.2.3