diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-07-05 00:33:57 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-05 00:38:34 +0300 |
commit | c8e78a0383164df0882df8734284ed4363b6891a (patch) | |
tree | fc4858edd5e2536c5ed857ed28abbcb427739de7 /libvo | |
parent | 677e78f2785e3ecad4a67050990281a506d9fd4e (diff) | |
download | mpv-c8e78a0383164df0882df8734284ed4363b6891a.tar.bz2 mpv-c8e78a0383164df0882df8734284ed4363b6891a.tar.xz |
VO: silence "[ASPECT] Warning: No suitable new res found!"
The warning "[ASPECT] Warning: No suitable new res found!" was printed
from aspect() if the video ended up being downscaled from the original
size AND the horizontal direction was the more limiting one for
aspect-aware scaling. Also, because aspect() can run multiple times
when starting playback this warning could be output multiple times.
Change the code so that downscaling alone no longer triggers this
message.
Diffstat (limited to 'libvo')
-rw-r--r-- | libvo/aspect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/aspect.c b/libvo/aspect.c index 2906f9e33b..8dcd8b6843 100644 --- a/libvo/aspect.c +++ b/libvo/aspect.c @@ -79,7 +79,7 @@ void aspect_fit(struct vo *vo, int *srcw, int *srch, int fitw, int fith) if (tmpw <= fitw) { *srch = fith; *srcw = tmpw; - } else { + } else if (*srch > fith) { mp_tmsg(MSGT_VO, MSGL_WARN, "[ASPECT] Warning: No suitable new res found!\n"); } |