Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
aa5c4533
Commit
aa5c4533
authored
6 years ago
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12393 from peterjozsa:issue_12301
parents
fc713166
8b0e1c7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cap_msmf.cpp
modules/videoio/src/cap_msmf.cpp
+3
-3
No files found.
modules/videoio/src/cap_msmf.cpp
View file @
aa5c4533
...
...
@@ -616,7 +616,7 @@ class SourceReaderCB : public IMFSourceReaderCallback
{
public
:
SourceReaderCB
()
:
m_nRefCount
(
1
),
m_hEvent
(
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
)),
m_bEOS
(
FALSE
),
m_hrStatus
(
S_OK
),
m_dwStreamIndex
(
0
)
m_nRefCount
(
0
),
m_hEvent
(
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
)),
m_bEOS
(
FALSE
),
m_hrStatus
(
S_OK
),
m_reader
(
NULL
),
m_dwStreamIndex
(
0
)
{
}
...
...
@@ -677,7 +677,7 @@ public:
BOOL
m_bEOS
;
HRESULT
m_hrStatus
;
_ComPtr
<
IMFSourceReader
>
m_reader
;
IMFSourceReader
*
m_reader
;
DWORD
m_dwStreamIndex
;
_ComPtr
<
IMFSample
>
m_lastSample
;
};
...
...
@@ -1140,7 +1140,7 @@ bool CvCapture_MSMF::grabFrame()
if
(
!
reader
->
m_reader
)
{
// Initiate capturing with async callback
reader
->
m_reader
=
videoFileSource
;
reader
->
m_reader
=
videoFileSource
.
Get
()
;
reader
->
m_dwStreamIndex
=
dwStreamIndex
;
if
(
FAILED
(
hr
=
videoFileSource
->
ReadSample
(
dwStreamIndex
,
0
,
NULL
,
NULL
,
NULL
,
NULL
)))
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment