Skip to content

Commit

Permalink
Avoid double Release() in FindCaptureDevice().
Browse files Browse the repository at this point in the history
This fixes a semantic conflict from merging 5e8b963 using ScopedComPtr<> and 58d4be4 using explicit Release().
  • Loading branch information
markmaker committed Apr 12, 2023
1 parent 4400ee1 commit 3bec8e3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion win/platformcontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ HRESULT FindCaptureDevice(IBaseFilter** ppSrcFilter, const wchar_t* devicePath)
(FAILED(hr) && strDevicePath == std::to_wstring(num_devices))) {
VariantClear(&varName);
hr = pMoniker->BindToObject(0, 0, IID_PPV_ARGS(ppSrcFilter));
pMoniker->Release();
return hr;
}
VariantClear(&varName);
Expand Down

0 comments on commit 3bec8e3

Please sign in to comment.