summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@mplayer2.org>2011-07-05 00:33:57 +0300
committerUoti Urpala <uau@mplayer2.org>2011-07-05 00:38:34 +0300
commitc8e78a0383164df0882df8734284ed4363b6891a (patch)
treefc4858edd5e2536c5ed857ed28abbcb427739de7
parent677e78f2785e3ecad4a67050990281a506d9fd4e (diff)
downloadmpv-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.
-rw-r--r--libvo/aspect.c2
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");
}