mirror of
https://gitlab.freedesktop.org/pipewire/pipewire
synced 2024-10-15 04:12:29 +00:00
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:
parent
3e4da8e8e4
commit
e0c0d9806f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue