mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-19 08:57:14 -05: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);
|
spa_libcamera_close(impl);
|
||||||
goto done;
|
goto done;
|
||||||
} else {
|
} else {
|
||||||
|
spa_zero(info);
|
||||||
if ((res = spa_format_parse(format, &info.media_type, &info.media_subtype)) < 0)
|
if ((res = spa_format_parse(format, &info.media_type, &info.media_subtype)) < 0)
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue