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:
Tanu Kaskinen 2014-04-15 13:56:11 +03:00
parent e4a7625ba8
commit ef4ae785aa
9 changed files with 12 additions and 33 deletions

View file

@ -765,7 +765,7 @@ static void subscription_cb(pa_core *c, pa_subscription_event_type_t t, uint32_t
}
}
new_mute = pa_sink_input_get_mute(s->sink_input);
new_mute = s->sink_input->muted;
if (s->mute != new_mute) {
s->mute = new_mute;
@ -861,7 +861,7 @@ pa_dbusiface_stream *pa_dbusiface_stream_new_playback(pa_dbusiface_core *core, p
else
pa_cvolume_init(&s->volume);
s->mute = pa_sink_input_get_mute(sink_input);
s->mute = sink_input->muted;
s->proplist = pa_proplist_copy(sink_input->proplist);
s->dbus_protocol = pa_dbus_protocol_get(sink_input->core);
s->subscription = pa_subscription_new(sink_input->core, PA_SUBSCRIPTION_MASK_SINK_INPUT, subscription_cb, s);