libcamera: close camera in error path

This commit is contained in:
Wim Taymans 2022-09-05 09:25:14 +02:00
parent df858cae7c
commit cad7db9f58

View file

@ -417,7 +417,7 @@ static int spa_libcamera_set_format(struct impl *impl, struct port *port,
port->streamConfig = impl->config->at(0); port->streamConfig = impl->config->at(0);
if ((res = allocBuffers(impl, port, port->streamConfig.bufferCount)) < 0) if ((res = allocBuffers(impl, port, port->streamConfig.bufferCount)) < 0)
return res; goto error;
port->have_format = true; port->have_format = true;