]> code.delx.au - pulseaudio/commitdiff
sink: Don't send unnecessary PA_SINK_MESSAGE_SET_SHARED_VOLUME messages.
authorTanu Kaskinen <tanuk@iki.fi>
Sun, 27 Feb 2011 11:20:42 +0000 (13:20 +0200)
committerColin Guthrie <cguthrie@mandriva.org>
Mon, 28 Feb 2011 09:55:01 +0000 (09:55 +0000)
If send_msg is false, the message will be sent by the caller.

src/pulsecore/sink.c

index d713be11fdeb8072b72066683735738a7308f094..4da36f3c0fc686a8259b56c027ca68f8f79b1d1a 100644 (file)
@@ -1705,8 +1705,6 @@ void pa_sink_set_volume(
         pa_cvolume_reset(&root_sink->soft_volume, root_sink->sample_spec.channels);
         if (!(root_sink->flags & PA_SINK_SYNC_VOLUME))
             root_sink->set_volume(root_sink);
-        else
-            send_msg = TRUE;
 
     } else
         /* If we have no function set_volume(), then the soft volume