mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
sink: Don't send unnecessary PA_SINK_MESSAGE_SET_SHARED_VOLUME messages.
If send_msg is false, the message will be sent by the caller.
This commit is contained in:
parent
6bd34156b1
commit
0d8bbaf40d
1 changed files with 0 additions and 2 deletions
|
|
@ -1705,8 +1705,6 @@ void pa_sink_set_volume(
|
||||||
pa_cvolume_reset(&root_sink->soft_volume, root_sink->sample_spec.channels);
|
pa_cvolume_reset(&root_sink->soft_volume, root_sink->sample_spec.channels);
|
||||||
if (!(root_sink->flags & PA_SINK_SYNC_VOLUME))
|
if (!(root_sink->flags & PA_SINK_SYNC_VOLUME))
|
||||||
root_sink->set_volume(root_sink);
|
root_sink->set_volume(root_sink);
|
||||||
else
|
|
||||||
send_msg = TRUE;
|
|
||||||
|
|
||||||
} else
|
} else
|
||||||
/* If we have no function set_volume(), then the soft volume
|
/* If we have no function set_volume(), then the soft volume
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue