mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
pulse: don't ignore return value
If a function can fail don't pretend it succeeded.
This commit is contained in:
parent
3c3ead2784
commit
9a66938283
1 changed files with 1 additions and 3 deletions
|
|
@ -767,9 +767,7 @@ static int format_info_iec958_from_param(struct format_info *info, struct spa_po
|
|||
if ((info->props = pw_properties_new(NULL, NULL)) == NULL)
|
||||
return -errno;
|
||||
|
||||
add_int(info, "format.rate", param, SPA_FORMAT_AUDIO_rate);
|
||||
|
||||
return 0;
|
||||
return add_int(info, "format.rate", param, SPA_FORMAT_AUDIO_rate);
|
||||
}
|
||||
|
||||
int format_info_from_param(struct format_info *info, struct spa_pod *param, uint32_t index)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue