From 3bec8e354f7f244f6b564f8ae20f0bfce1baa2f1 Mon Sep 17 00:00:00 2001 From: markus Date: Wed, 12 Apr 2023 14:52:37 +0200 Subject: [PATCH] Avoid double Release() in FindCaptureDevice(). This fixes a semantic conflict from merging 5e8b963c271f2a700b317c63bb26c4ac57ed805a using ScopedComPtr<> and 58d4be4d7db9f259cbeda0a232bd858bd690c414 using explicit Release(). --- win/platformcontext.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/win/platformcontext.cpp b/win/platformcontext.cpp index 53c2283..8c9a25a 100644 --- a/win/platformcontext.cpp +++ b/win/platformcontext.cpp @@ -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);