VO: Keep aspect by adding black bars in window mode too if necessary
commit4aff125b35984e7777d06edccdceeb28e531b907
authorUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 20 Nov 2009 21:15:11 +0000 (20 23:15 +0200)
committerUoti Urpala <uau@glyph.nonexistent.invalid>
Fri, 20 Nov 2009 21:15:11 +0000 (20 23:15 +0200)
tree9d5f131f82d2cc5d622a3d59248dadb7c24516e8
parente5bcd70bc5b0557635ae51c7093f0e887493d4ba
VO: Keep aspect by adding black bars in window mode too if necessary

By default (without -nokeepaspect) MPlayer tries to maintain video
aspect ratio by using window manager hints to keep output window
aspect when resizing. Before this commit it would however scale the
video to completely fill the window even if the window manager did not
respect those hints. Change the behavior to add black bars like in
fullscreen mode instead in this case.
DOCS/man/en/mplayer.1
libvo/video_out.h