DShowPlugin: Make sure use buffering on for Elgato

In the case in which you just started up the dialog, the strDevice
variable would be set to null, so it would not be able to check to make
sure whether the device is actually an Elgato or not, so just ignore
setting the use buffering checkbox if there is no strDevice set
master
jp9000 2015-02-18 16:12:38 -08:00
parent 7813e6fc13
commit 2701fadbf4
1 changed files with 2 additions and 1 deletions

View File

@ -1310,7 +1310,8 @@ INT_PTR CALLBACK ConfigureDialogProc(HWND hwnd, UINT message, WPARAM wParam, LPA
EnableWindow(GetDlgItem(hwnd, IDC_DELAY_EDIT), bUseBuffering);
EnableWindow(GetDlgItem(hwnd, IDC_DELAY), bUseBuffering);
SendMessage(GetDlgItem(hwnd, IDC_USEBUFFERING), BM_SETCHECK, bUseBuffering ? BST_CHECKED : BST_UNCHECKED, 0);
if (strDevice.IsValid())
SendMessage(GetDlgItem(hwnd, IDC_USEBUFFERING), BM_SETCHECK, bUseBuffering ? BST_CHECKED : BST_UNCHECKED, 0);
DWORD bufferTime = configData->data->GetInt(TEXT("bufferTime"));
SendMessage(GetDlgItem(hwnd, IDC_DELAY), UDM_SETRANGE32, 0, 8000);