Skip to content

videoio(v4l2): use logging, update handling of EBUSY, device closing#15978

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:videoio_refactor_v4l
Nov 25, 2019
Merged

videoio(v4l2): use logging, update handling of EBUSY, device closing#15978
opencv-pushbot merged 1 commit intoopencv:3.4from
alalek:videoio_refactor_v4l

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Nov 23, 2019

  • DEBUG logging compilation is enabled for all videoio backends
  • eliminate output through perror(), stderr

- DEBUG logging compilation is enabled for all videoio backends
- eliminate output through perror(), stderr
}

if (!(isBusy || errno == EAGAIN))
if (--attempts == 0) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe log about exceeding of attempts count should be added just like for busy device case?

Copy link
Copy Markdown
Contributor

@VadimLevin VadimLevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good for me 👍

@opencv-pushbot opencv-pushbot merged commit 501ff7f into opencv:3.4 Nov 25, 2019
@alalek alalek mentioned this pull request Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants