Skip to content

Commit d017970

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 a8495f5 commit d017970

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
@@ -69,7 +69,7 @@ static void app_add_format(uint32_t pixfmt, uint16_t width, uint16_t height, boo
6969
}
7070

7171
/* Set the format to get the pitch */
72-
ret = video_set_format(video_dev, &fmt);
72+
ret = video_set_compose_format(video_dev, &fmt);
7373
if (ret != 0) {
7474
LOG_ERR("Could not set the format of %s", video_dev->name);
7575
return;
@@ -168,7 +168,7 @@ int main(void)
168168

169169
fmt.type = VIDEO_BUF_TYPE_OUTPUT;
170170

171-
ret = video_set_format(video_dev, &fmt);
171+
ret = video_set_compose_format(video_dev, &fmt);
172172
if (ret != 0) {
173173
LOG_WRN("Could not set the format of %s", video_dev->name);
174174
}

0 commit comments

Comments
 (0)