Fixed assertion warning in MSMF frame grabber
Applied in PR3251 to 2.4 branch
This commit is contained in:
parent
7c00b17085
commit
8f334b4e41
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user