mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-31 22:25:33 -04:00
device-port: add type member
The clients might wanna to know for which purpose is the port. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
861836c5f7
commit
feee531c2b
9 changed files with 77 additions and 10 deletions
|
|
@ -1039,7 +1039,9 @@ static int read_ports(struct userdata *u, pa_tagstruct *t) {
|
|||
pa_log("Parse failure");
|
||||
return -PA_ERR_PROTOCOL;
|
||||
}
|
||||
if (u->version >= 34 && pa_tagstruct_gets(t, &s) < 0) { /* available_group */
|
||||
if (u->version >= 34 &&
|
||||
(pa_tagstruct_gets(t, &s) < 0 || /* available_group */
|
||||
pa_tagstruct_getu32(t, &priority) < 0)) { /* device port type */
|
||||
pa_log("Parse failure");
|
||||
return -PA_ERR_PROTOCOL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue