0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

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.
This commit is contained in:
dirb 2016-06-21 10:57:07 -05:00 committed by wm4
parent 6f9973618c
commit 9d0af06811

View File

@ -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;
}