mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-07 13:30:03 -05:00
read base volume only in proto 15
This commit is contained in:
parent
b9e96e00cf
commit
d94d39d635
1 changed files with 2 additions and 2 deletions
|
|
@ -172,7 +172,7 @@ static void context_get_sink_info_callback(pa_pdispatch *pd, uint32_t command, u
|
|||
(o->context->version >= 13 &&
|
||||
(pa_tagstruct_get_proplist(t, i.proplist) < 0 ||
|
||||
pa_tagstruct_get_usec(t, &i.configured_latency) < 0)) ||
|
||||
(o->context->version >= 14 &&
|
||||
(o->context->version >= 15 &&
|
||||
pa_tagstruct_get_volume(t, &i.base_volume) < 0)) {
|
||||
|
||||
pa_context_fail(o->context, PA_ERR_PROTOCOL);
|
||||
|
|
@ -296,7 +296,7 @@ static void context_get_source_info_callback(pa_pdispatch *pd, uint32_t command,
|
|||
(o->context->version >= 13 &&
|
||||
(pa_tagstruct_get_proplist(t, i.proplist) < 0 ||
|
||||
pa_tagstruct_get_usec(t, &i.configured_latency) < 0)) ||
|
||||
(o->context->version >= 14 &&
|
||||
(o->context->version >= 15 &&
|
||||
pa_tagstruct_get_volume(t, &i.base_volume) < 0)) {
|
||||
|
||||
pa_context_fail(o->context, PA_ERR_PROTOCOL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue