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 setmaster
parent
7813e6fc13
commit
2701fadbf4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue