Skip to content

Commit

Permalink
Adapt test to video standard
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagocoutinho committed Jul 13, 2024
1 parent 8874fbf commit 6e225fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,13 @@ def ioctl(self, fd, ioc, arg): # noqa: C901
raise OSError(EINVAL, "ups!")
arg.name = self.input0_name
arg.type = raw.InputType.CAMERA
if isinstance(arg, raw.v4l2_output):
elif isinstance(arg, raw.v4l2_output):
if arg.index > 0:
raise OSError(EINVAL, "ups!")
arg.name = self.input0_name
arg.type = raw.OutputType.ANALOG
elif isinstance(arg, raw.v4l2_standard):
raise OSError(EINVAL, "ups!")
elif isinstance(arg, raw.v4l2_query_ext_ctrl):
if arg.index == 0:
arg.name = b"brightness"
Expand Down

0 comments on commit 6e225fc

Please sign in to comment.