Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/mpc-hc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorUnderground78 <underground78@users.sourceforge.net>2013-10-03 01:25:03 +0400
committerUnderground78 <underground78@users.sourceforge.net>2013-10-03 01:26:09 +0400
commit6322d201ba9112791142fac705478f127327a932 (patch)
treecd4a5bdec32c5648b2a37aeb109cf8f3dbc0755e /src
parentc42235abe135a2e238b1d86569ad2fccf69d719d (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.cpp2
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;