summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.c
diff options
context:
space:
mode:
authordirb <dirbarranco@gmail.com>2016-06-21 10:57:07 -0500
committerwm4 <wm4@nowhere>2016-06-22 18:16:43 +0200
commit9d0af0681191823608d9bbc290f5f30fc60e228e (patch)
treeec10ff8efd00a946121bdf5ead24f2d8201c32bc /video/out/opengl/video.c
parent6f9973618cf7f137f9007d00c86a4949f4b12c71 (diff)
downloadmpv-9d0af0681191823608d9bbc290f5f30fc60e228e.tar.bz2
mpv-9d0af0681191823608d9bbc290f5f30fc60e228e.tar.xz
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.
Diffstat (limited to 'video/out/opengl/video.c')
-rw-r--r--video/out/opengl/video.c3
1 files changed, 2 insertions, 1 deletions
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;
}