mirror of
https://github.com/mpv-player/mpv
synced 2025-01-30 11:42:04 +00:00
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
This commit is contained in:
parent
163ae34e96
commit
ffbc561f96
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user