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
ece3fac7
Commit
ece3fac7
authored
Feb 01, 2017
by
PkLab
Committed by
Alexander Alekhin
Feb 01, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge pull request #8112 from PkLab:Fix_7898
CoInitialize/CoUninitialize in VFW classes (#8112)
parent
607ff2e1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
4 deletions
+20
-4
cap_vfw.cpp
modules/videoio/src/cap_vfw.cpp
+20
-4
No files found.
modules/videoio/src/cap_vfw.cpp
View file @
ece3fac7
...
...
@@ -312,8 +312,16 @@ CvCapture* cvCreateFileCapture_VFW (const char* filename)
class
CvCaptureCAM_VFW
:
public
CvCapture
{
public
:
CvCaptureCAM_VFW
()
{
init
();
}
virtual
~
CvCaptureCAM_VFW
()
{
close
();
}
CvCaptureCAM_VFW
()
{
CoInitialize
(
NULL
);
init
();
}
virtual
~
CvCaptureCAM_VFW
()
{
close
();
CoUninitialize
();
}
virtual
bool
open
(
int
index
);
virtual
void
close
();
...
...
@@ -673,8 +681,16 @@ CvCapture* cvCreateCameraCapture_VFW( int index )
class
CvVideoWriter_VFW
:
public
CvVideoWriter
{
public
:
CvVideoWriter_VFW
()
{
init
();
}
virtual
~
CvVideoWriter_VFW
()
{
close
();
}
CvVideoWriter_VFW
()
{
CoInitialize
(
NULL
);
init
();
}
virtual
~
CvVideoWriter_VFW
()
{
close
();
CoUninitialize
();
}
virtual
bool
open
(
const
char
*
filename
,
int
fourcc
,
double
fps
,
CvSize
frameSize
,
bool
isColor
);
...
...
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