projects
/
platform
/
upstream
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a615102
)
Fixed assertion warning in MSMF frame grabber
author
Artur Wieczorek
<artwik@wp.pl>
Mon, 22 Sep 2014 17:38:04 +0000
(19:38 +0200)
committer
Artur Wieczorek
<artwik@wp.pl>
Mon, 22 Sep 2014 17:38:04 +0000
(19:38 +0200)
modules/highgui/src/cap_msmf.cpp
patch
|
blob
|
history
diff --git
a/modules/highgui/src/cap_msmf.cpp
b/modules/highgui/src/cap_msmf.cpp
index
c2507e9
..
a8977a2
100644
(file)
--- a/
modules/highgui/src/cap_msmf.cpp
+++ b/
modules/highgui/src/cap_msmf.cpp
@@
-1462,7
+1462,6
@@
void ImageGrabber::stopGrabbing()
HRESULT ImageGrabber::startGrabbing(void)
{
- _ComPtr<IMFMediaEvent> pEvent = NULL;
PROPVARIANT var;
PropVariantInit(&var);
HRESULT hr = ig_pSession->SetTopology(0, ig_pTopology);
@@
-1470,6
+1469,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;