libcamera: clear format info

Or else we end up with invalid data for the fields that did not get
initialized when parsing the format param.
This commit is contained in:
Wim Taymans 2022-11-02 17:14:01 +01:00
parent 3e4da8e8e4
commit e0c0d9806f

View file

@ -643,6 +643,7 @@ static int port_set_format(struct impl *impl, struct port *port,
spa_libcamera_close(impl);
goto done;
} else {
spa_zero(info);
if ((res = spa_format_parse(format, &info.media_type, &info.media_subtype)) < 0)
return res;