diff options
author | Underground78 <underground78@users.sourceforge.net> | 2013-10-03 01:25:03 +0400 |
---|---|---|
committer | Underground78 <underground78@users.sourceforge.net> | 2013-10-03 01:26:09 +0400 |
commit | 6322d201ba9112791142fac705478f127327a932 (patch) | |
tree | cd4a5bdec32c5648b2a37aeb109cf8f3dbc0755e /src | |
parent | c42235abe135a2e238b1d86569ad2fccf69d719d (diff) |
Internal LAVVideo: HW Acceleration wasn't correctly turned off on XP when none was detected.
Diffstat (limited to 'src')
-rw-r--r-- | src/mpc-hc/FGFilterLAV.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mpc-hc/FGFilterLAV.cpp b/src/mpc-hc/FGFilterLAV.cpp index 3a6ef8163..1852f563e 100644 --- a/src/mpc-hc/FGFilterLAV.cpp +++ b/src/mpc-hc/FGFilterLAV.cpp @@ -582,6 +582,8 @@ void CFGFilterLAVVideo::Settings::LoadSettings() dwHWAccel = pApp->GetProfileInt(IDS_R_INTERNAL_LAVVIDEO_HWACCEL, _T("HWAccel"), -1);
if (dwHWAccel == DWORD(-1)) {
+ dwHWAccel = HWAccel_None; // Ensure that a valid state is selected if no HW acceleration is available
+
// We enable by default DXVA2 native on Vista+ and CUVID on XP if an nVidia adapter is found
if (SysVersion::IsVistaOrLater()) {
dwHWAccel = HWAccel_DXVA2Native;
|