Skip to content

Commit

Permalink
Disable QSV on Vista
Browse files Browse the repository at this point in the history
  • Loading branch information
palana committed Sep 25, 2014
1 parent c497f71 commit a976a2c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/Encoder_QSV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ namespace

bool spawn_helper(String &event_prefix, safe_handle &qsvhelper_process, safe_handle &qsvhelper_thread, IPCWaiter &process_waiter)
{
if (OSGetVersion() < 7) return false;

String helper_path;
auto dir_size = GetCurrentDirectory(0, NULL);
helper_path.SetLength(dir_size);
Expand Down Expand Up @@ -553,8 +555,12 @@ class QSVEncoder : public VideoEncoder
}
}

if(!spawn_helper(event_prefix, qsvhelper_process, qsvhelper_thread, process_waiter))
if (!spawn_helper(event_prefix, qsvhelper_process, qsvhelper_thread, process_waiter))
{
if (OSGetVersion() < 7)
ThrowQSVInitError(L"QSV is no longer supported on Vista", Str("Encoder.QSV.HelperLaunchFailedVista"));
ThrowQSVInitError(L"Couldn't launch QSVHelper.exe: %u!", Str("Encoder.QSV.HelperLaunchFailed"), GetLastError());
}

ipc_init_request request((event_prefix + INIT_REQUEST).Array());

Expand Down
1 change: 1 addition & 0 deletions rundir/locale/en.txt
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,7 @@ Encoder.QSV.SNBIVBMaximumResolutionWidthExceeded="Your output resolution width o
Encoder.QSV.SNBIVBMaximumResolutionHeightExceeded="Your output resolution height of %u exceeds the maximum of 1200 supported by Quick Sync on Sandy Bridge and Ivy Bridge based processors!\r\n"
Encoder.QSV.InitCustomParamsFailed="Encoder initialization failed while custom parameters where active. Try enabling CBR or VBR in the Quick Sync Encoder settings."
Encoder.QSV.HelperLaunchFailed="QSVHelper.exe couldn't be launched!"
Encoder.QSV.HelperLaunchFailedVista="Quick Sync is no longer supported on Vista."
Encoder.QSV.HelperEarlyExit="QSVHelper.exe exited."
Encoder.QSV.IncompatibleImpl="QSVHelper.exe has exited because of an invalid 'qsvimpl' encoder setting; try removing the 'qsvimpl' parameter from your Custom Quick Sync Encoder Settings"
Encoder.QSV.NoValidConfig="Quick Sync couldn't find a valid configuration; try connecting a (virtual) monitor to your Intel GPU"
Expand Down

0 comments on commit a976a2c

Please sign in to comment.