libcamera: fix bytesperline calculation for libcamera0.2 (#140)
For libcamera0.2 configuraiton.stride is already set to some incorrect value and configurations->validate() doesn't update it if it's not 0. For libcamera0.1 it was set to 0. So set it to 0 manually to make sure configurations->validate() computes the correct value.
This commit is contained in:
parent
54bdd9d4d6
commit
6deb9c513c
@ -92,6 +92,8 @@ int libcamera_buffer_list_open(buffer_list_t *buf_list)
|
||||
}
|
||||
if (buf_list->fmt.bytesperline > 0) {
|
||||
configuration.stride = buf_list->fmt.bytesperline;
|
||||
} else {
|
||||
configuration.stride = 0;
|
||||
}
|
||||
if (buf_list->fmt.nbufs > 0) {
|
||||
configuration.bufferCount = buf_list->fmt.nbufs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user