aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-12-29 09:43:38 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-12-29 14:41:37 +0100
commitd4b7017466a9f0d7603404629e8248c66007bfb9 (patch)
tree84a974c6fe3e63043fbb5ad53161d1d3a8985593
parent6c905930e8e9bdf485f857ea8aadcaffbfd0943d (diff)
v4l2-ctl: Operate on output device if specified
The video output get, set and list options operate on the device set by --device, even if the --out-device option is specified to select a different output device. Fix it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
-rw-r--r--utils/v4l2-ctl/v4l2-ctl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/v4l2-ctl/v4l2-ctl.cpp b/utils/v4l2-ctl/v4l2-ctl.cpp
index 764a7c71..1c433355 100644
--- a/utils/v4l2-ctl/v4l2-ctl.cpp
+++ b/utils/v4l2-ctl/v4l2-ctl.cpp
@@ -1471,7 +1471,7 @@ int main(int argc, char **argv)
io_set(c_fd);
stds_set(c_fd);
vidcap_set(c_fd);
- vidout_set(c_fd);
+ vidout_set(out_device ? c_out_fd : c_fd);
overlay_set(c_fd);
vbi_set(c_fd);
sdr_set(c_fd);
@@ -1488,7 +1488,7 @@ int main(int argc, char **argv)
io_get(c_fd);
stds_get(c_fd);
vidcap_get(c_fd);
- vidout_get(c_fd);
+ vidout_get(out_device ? c_out_fd : c_fd);
overlay_get(c_fd);
vbi_get(c_fd);
sdr_get(c_fd);
@@ -1504,7 +1504,7 @@ int main(int argc, char **argv)
io_list(c_fd);
stds_list(c_fd);
vidcap_list(c_fd);
- vidout_list(c_fd);
+ vidout_list(out_device ? c_out_fd : c_fd);
overlay_list(c_fd);
vbi_list(c_fd);
sdr_list(c_fd);

Privacy Policy