mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
sink-input, source-output: Remove redundant get_mute() functions
The functions just return the muted value. Callers can as well read the struct field directly, it's simpler that way.
This commit is contained in:
parent
e4a7625ba8
commit
ef4ae785aa
9 changed files with 12 additions and 33 deletions
|
|
@ -536,7 +536,7 @@ char *pa_source_output_list_to_string(pa_core *c) {
|
|||
state_table[pa_source_output_get_state(o)],
|
||||
o->source->index, o->source->name,
|
||||
volume_str,
|
||||
pa_yes_no(pa_source_output_get_mute(o)),
|
||||
pa_yes_no(o->muted),
|
||||
(double) pa_source_output_get_latency(o, NULL) / PA_USEC_PER_MSEC,
|
||||
clt,
|
||||
pa_sample_spec_snprint(ss, sizeof(ss), &o->sample_spec),
|
||||
|
|
@ -634,7 +634,7 @@ char *pa_sink_input_list_to_string(pa_core *c) {
|
|||
state_table[pa_sink_input_get_state(i)],
|
||||
i->sink->index, i->sink->name,
|
||||
volume_str,
|
||||
pa_yes_no(pa_sink_input_get_mute(i)),
|
||||
pa_yes_no(i->muted),
|
||||
(double) pa_sink_input_get_latency(i, NULL) / PA_USEC_PER_MSEC,
|
||||
clt,
|
||||
pa_sample_spec_snprint(ss, sizeof(ss), &i->sample_spec),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue