Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
jami-daemon
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
130
Issues
130
List
Boards
Labels
Service Desk
Milestones
Iterations
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Analytics
Analytics
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
savoirfairelinux
jami-daemon
Commits
42b5e68c
Commit
42b5e68c
authored
Apr 27, 2015
by
Edric Milaret
Committed by
Guillaume Roguez
Apr 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows: fix SIGSEGV occuring when no camera are found
Refs #71985 Change-Id: I78aa51ef823a2d48da96d4f0ed58bc838915b4f5
parent
85a890d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/media/video/winvideo/video_device_monitor_impl.cpp
src/media/video/winvideo/video_device_monitor_impl.cpp
+4
-4
No files found.
src/media/video/winvideo/video_device_monitor_impl.cpp
View file @
42b5e68c
...
...
@@ -105,17 +105,17 @@ VideoDeviceMonitorImpl::run()
hr
=
CoCreateInstance
(
CLSID_SystemDeviceEnum
,
NULL
,
CLSCTX_INPROC_SERVER
,
IID_PPV_ARGS
(
&
pDevEnum
));
IEnumMoniker
*
pEnum
;
IEnumMoniker
*
pEnum
=
nullptr
;
if
(
SUCCEEDED
(
hr
))
{
hr
=
pDevEnum
->
CreateClassEnumerator
(
CLSID_VideoInputDeviceCategory
,
&
pEnum
,
0
);
if
(
FAILED
(
hr
))
{
pDevEnum
->
Release
();
if
(
FAILED
(
hr
)
||
pEnum
==
nullptr
)
{
RING_ERR
(
"No webcam found."
);
hr
=
VFW_E_NOT_FOUND
;
}
pDevEnum
->
Release
();
if
(
hr
!=
VFW_E_NOT_FOUND
)
{
if
(
hr
!=
VFW_E_NOT_FOUND
&&
pEnum
!=
nullptr
)
{
IMoniker
*
pMoniker
=
NULL
;
unsigned
deviceID
=
0
;
while
(
pEnum
->
Next
(
1
,
&
pMoniker
,
NULL
)
==
S_OK
)
...
...
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