mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-02-05 14:50:36 +01:00
si-audio-adapter: make sure formats is valid before iterating
This commit is contained in:
parent
1bdb8c2fb3
commit
ea229779a8
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ si_audio_adapter_find_format (WpSiAudioAdapter * self, WpNode * node)
|
|||
|
||||
formats = wp_pipewire_object_enum_params_sync (WP_PIPEWIRE_OBJECT (node),
|
||||
"EnumFormat", NULL);
|
||||
if (!formats)
|
||||
return FALSE;
|
||||
|
||||
for (; wp_iterator_next (formats, &value); g_value_unset (&value)) {
|
||||
WpSpaPod *pod = g_value_get_boxed (&value);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue