Skip to content

Commit 3bec8e3

Browse files
committed
Avoid double Release() in FindCaptureDevice().
This fixes a semantic conflict from merging 5e8b963 using ScopedComPtr<> and 58d4be4 using explicit Release().
1 parent 4400ee1 commit 3bec8e3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

win/platformcontext.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ HRESULT FindCaptureDevice(IBaseFilter** ppSrcFilter, const wchar_t* devicePath)
453453
(FAILED(hr) && strDevicePath == std::to_wstring(num_devices))) {
454454
VariantClear(&varName);
455455
hr = pMoniker->BindToObject(0, 0, IID_PPV_ARGS(ppSrcFilter));
456-
pMoniker->Release();
457456
return hr;
458457
}
459458
VariantClear(&varName);

0 commit comments

Comments
 (0)