mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-01 22:58:47 -04:00
solaris, tunnel: Remove some redundant boolean conversions
This commit is contained in:
parent
ef4ae785aa
commit
f88912af9b
2 changed files with 2 additions and 2 deletions
|
|
@ -564,7 +564,7 @@ static void sink_set_mute(pa_sink *s) {
|
|||
if (u->fd >= 0) {
|
||||
AUDIO_INITINFO(&info);
|
||||
|
||||
info.output_muted = !!s->muted;
|
||||
info.output_muted = s->muted;
|
||||
|
||||
if (ioctl(u->fd, AUDIO_SETINFO, &info) < 0)
|
||||
pa_log("AUDIO_SETINFO: %s", pa_cstrerror(errno));
|
||||
|
|
|
|||
|
|
@ -1906,7 +1906,7 @@ static void sink_set_mute(pa_sink *sink) {
|
|||
pa_tagstruct_putu32(t, PA_COMMAND_SET_SINK_INPUT_MUTE);
|
||||
pa_tagstruct_putu32(t, u->ctag++);
|
||||
pa_tagstruct_putu32(t, u->device_index);
|
||||
pa_tagstruct_put_boolean(t, !!sink->muted);
|
||||
pa_tagstruct_put_boolean(t, sink->muted);
|
||||
pa_pstream_send_tagstruct(u->pstream, t);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue