mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
fix crashing issue when no suitable mode is found
This commit is contained in:
@@ -150,7 +150,7 @@ public
|
||||
for (UINT32 i = 0; i < vcdl.Count(); ++i)
|
||||
{
|
||||
auto name = gcnew String(vcdl.GetDeviceName(i).data());
|
||||
if (name != L"PowerToys VideoConference")
|
||||
if (name != L"PowerToys VideoConference Mute")
|
||||
{
|
||||
names->Add(name);
|
||||
}
|
||||
|
||||
@@ -509,7 +509,7 @@ HRESULT VideoCaptureProxyFilter::EnumPins(IEnumPins** ppEnum)
|
||||
if (webcams.empty())
|
||||
{
|
||||
LOG("No physical webcams found");
|
||||
return S_OK;
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
std::optional<size_t> selectedCamIdx;
|
||||
@@ -539,7 +539,7 @@ HRESULT VideoCaptureProxyFilter::EnumPins(IEnumPins** ppEnum)
|
||||
if (!selectedCamIdx)
|
||||
{
|
||||
LOG("Webcam couldn't be selected");
|
||||
return S_OK;
|
||||
return E_FAIL;
|
||||
}
|
||||
|
||||
auto& webcam = webcams[*selectedCamIdx];
|
||||
|
||||
Reference in New Issue
Block a user