Skip to content

Commit 531a9d5

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 128ef74 commit 531a9d5

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 void app_add_format(uint32_t pixfmt, uint32_t width, uint32_t height, boo
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),
@@ -160,7 +160,7 @@ int main(void)
160160

161161
fmt.type = VIDEO_BUF_TYPE_OUTPUT;
162162

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

0 commit comments

Comments
 (0)