Skip to content

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

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

opencv-pushbot merged 1 commit into
opencv:3.4from
alalek:videoio_refactor_v4l

Conversation

@alalek

@alalek alalek commented Nov 23, 2019

Copy link
Copy Markdown
Member
  • 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?

@VadimLevin VadimLevin left a comment

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.

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
SavyaSanchi-Sharma pushed a commit to SavyaSanchi-Sharma/opencv that referenced this pull request Jul 30, 2026
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