mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
alsa: handle extra propinfo in all cases
When we don't have iec codecs, increment the result.index to iterate the remaining properties.
This commit is contained in:
parent
67dc97fa43
commit
03f069c35b
1 changed files with 11 additions and 13 deletions
|
|
@ -181,7 +181,8 @@ static int impl_node_enum_params(void *object, int seq,
|
|||
SPA_PROP_INFO_type, SPA_POD_CHOICE_RANGE_Long(0LL, 0LL, INT64_MAX));
|
||||
break;
|
||||
case 6:
|
||||
if (this->is_iec958 || this->is_hdmi) {
|
||||
if (!this->is_iec958 && !this->is_hdmi)
|
||||
goto next;
|
||||
param = spa_pod_builder_add_object(&b,
|
||||
SPA_TYPE_OBJECT_PropInfo, id,
|
||||
SPA_PROP_INFO_id, SPA_POD_Id(SPA_PROP_iec958Codecs),
|
||||
|
|
@ -190,10 +191,7 @@ static int impl_node_enum_params(void *object, int seq,
|
|||
SPA_PROP_INFO_type, SPA_POD_Id(SPA_AUDIO_IEC958_CODEC_UNKNOWN),
|
||||
SPA_PROP_INFO_params, SPA_POD_Bool(true),
|
||||
SPA_PROP_INFO_container, SPA_POD_Id(SPA_TYPE_Array));
|
||||
|
||||
break;
|
||||
}
|
||||
SPA_FALLTHROUGH
|
||||
default:
|
||||
param = spa_alsa_enum_propinfo(this, result.index - 7, &b);
|
||||
if (param == NULL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue