Commit 8f334b4e authored by Artur Wieczorek's avatar Artur Wieczorek

Fixed assertion warning in MSMF frame grabber

Applied in PR3251 to 2.4 branch
parent 7c00b170
......@@ -1471,7 +1471,6 @@ void ImageGrabber::stopGrabbing()
HRESULT ImageGrabber::startGrabbing(void)
{
_ComPtr<IMFMediaEvent> pEvent = NULL;
PROPVARIANT var;
PropVariantInit(&var);
HRESULT hr = ig_pSession->SetTopology(0, ig_pTopology);
......@@ -1479,6 +1478,7 @@ HRESULT ImageGrabber::startGrabbing(void)
hr = ig_pSession->Start(&GUID_NULL, &var);
for(;;)
{
_ComPtr<IMFMediaEvent> pEvent = NULL;
HRESULT hrStatus = S_OK;
MediaEventType met;
if(!ig_pSession) break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment