mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04: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
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue