mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05: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)
|
if ((info->props = pw_properties_new(NULL, NULL)) == NULL)
|
||||||
return -errno;
|
return -errno;
|
||||||
|
|
||||||
add_int(info, "format.rate", param, SPA_FORMAT_AUDIO_rate);
|
return add_int(info, "format.rate", param, SPA_FORMAT_AUDIO_rate);
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int format_info_from_param(struct format_info *info, struct spa_pod *param, uint32_t index)
|
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