Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
ddbe4b08
Commit
ddbe4b08
authored
Jul 08, 2020
by
Albert Babí Oller
Browse files
video_input: fix crash when touchpad v4l has video capabilities
Change-Id: Ie24e29fc97f1f83cc0148c1c75788cef8f1008df
parent
07188b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/media/video/v4l2/video_device_impl.cpp
View file @
ddbe4b08
...
...
@@ -449,6 +449,9 @@ VideoDeviceImpl::VideoDeviceImpl(const string& path)
if
(
!
(
cap
.
capabilities
&
V4L2_CAP_VIDEO_CAPTURE
))
throw
std
::
runtime_error
(
"not a capture device"
);
if
(
cap
.
capabilities
&
V4L2_CAP_TOUCH
)
throw
std
::
runtime_error
(
"touch device, ignoring it"
);
name
=
string
(
reinterpret_cast
<
const
char
*>
(
cap
.
card
));
v4l2_input
input
;
...
...
Write
Preview
Supports
Markdown
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