mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
a2dp: fail if no ldac samplerate was found
This commit is contained in:
parent
0a8a854721
commit
7996b44036
1 changed files with 2 additions and 0 deletions
|
|
@ -156,6 +156,8 @@ static int codec_enum_config(const struct a2dp_codec *codec,
|
|||
spa_pod_builder_int(b, 96000);
|
||||
spa_pod_builder_int(b, 96000);
|
||||
}
|
||||
if (i == 0)
|
||||
return -EINVAL;
|
||||
if (i > 1)
|
||||
choice->body.type = SPA_CHOICE_Enum;
|
||||
spa_pod_builder_pop(b, &f[1]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue