Added an error message

This commit is contained in:
Pierre Pronchery 2012-10-12 16:09:56 +00:00
parent 3b3583271c
commit 68f5d1e529

View File

@ -105,6 +105,8 @@ static VideoPhonePlugin * _video_init(PhonePluginHelper * helper)
/* FIXME also implement mmap() and streaming */
|| (cap.capabilities & V4L2_CAP_READWRITE) == 0)
{
helper->error(helper->phone,
"Could not open the video capture device", 1);
_video_destroy(video);
return NULL;
}