diff options
author | komh <komh@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-11-02 13:59:13 +0000 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-07 21:49:51 +0200 |
commit | ffbc561f96139a187ba3f4036babd786b1321d0b (patch) | |
tree | 6b46e3b797a47719f496e93baf0e8cd0934ab572 | |
parent | 163ae34e96e62a07cb20255e909a75440de753ad (diff) | |
download | mpv-ffbc561f96139a187ba3f4036babd786b1321d0b.tar.bz2 mpv-ffbc561f96139a187ba3f4036babd786b1321d0b.tar.xz |
vo_kva: Restore all the attributes after changing aspect ratio
kvaSetup() resets all the attributes, so there is need to restore them.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@32570 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_kva.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libvo/vo_kva.c b/libvo/vo_kva.c index 5c0c934337..7994fe9143 100644 --- a/libvo/vo_kva.c +++ b/libvo/vo_kva.c @@ -139,8 +139,17 @@ struct { static inline void setAspectRatio(ULONG ulRatio) { + ULONG ulValue; + int i; + m_int.kvas.ulRatio = ulRatio; kvaSetup(&m_int.kvas); + + // Setup initializes all attributes, so need to restore them. + for (i = 0; i < KVAA_LAST; i++) { + kvaQueryAttr(i, &ulValue); + kvaSetAttr(i, &ulValue); + } } static int query_format_info(int format, PBOOL pfHWAccel, PFOURCC pfcc, |