Fixed assertion warning in MSMF frame grabber

Applied in PR3251 to 2.4 branch
This commit is contained in:
Artur Wieczorek 2014-09-25 11:51:31 +02:00
parent 7c00b17085
commit 8f334b4e41

View File

@ -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;