Commit ddbe4b08 authored by Albert  Babí Oller's avatar Albert Babí Oller
Browse files

video_input: fix crash when touchpad v4l has video capabilities

Change-Id: Ie24e29fc97f1f83cc0148c1c75788cef8f1008df
parent 07188b4a
......@@ -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;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment