Skip to content

Commit 8d8877d

Browse files
author
Alain Volmat
committed
samples: usb: uvc: use video_set_compose_format
Use the helper video_set_compose_format in order to allow controlling the compose. Signed-off-by: Alain Volmat <[email protected]>
1 parent 8fcde93 commit 8d8877d

File tree

1 file changed

+2
-2
lines changed
  • samples/subsys/usb/uvc/src

1 file changed

+2
-2
lines changed

samples/subsys/usb/uvc/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ static int app_add_format(uint32_t pixfmt, uint32_t width, uint32_t height, bool
6060
}
6161

6262
/* Set the format to get the size */
63-
ret = video_set_format(video_dev, &fmt);
63+
ret = video_set_compose_format(video_dev, &fmt);
6464
if (ret != 0) {
6565
LOG_ERR("Could not set the format of %s to %s %ux%u (size %u)",
6666
video_dev->name, VIDEO_FOURCC_TO_STR(fmt.pixelformat),
@@ -178,7 +178,7 @@ int main(void)
178178

179179
fmt.type = VIDEO_BUF_TYPE_OUTPUT;
180180

181-
ret = video_set_format(video_dev, &fmt);
181+
ret = video_set_compose_format(video_dev, &fmt);
182182
if (ret != 0) {
183183
LOG_ERR("Could not set the format of %s to %s %ux%u (size %u)",
184184
video_dev->name, VIDEO_FOURCC_TO_STR(fmt.pixelformat),

0 commit comments

Comments
 (0)