diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2010-10-19 13:03:48 +0530 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2010-10-19 09:52:19 +0100 |
commit | 9b8f20f617358b40b6641925770787627b73b0df (patch) | |
tree | ba39c0c929a7858f912ee7ebf7edc27b2b51ab0e /src/modules/dbus/iface-stream.c | |
parent | 340729d66f748c067f63f1a24679513963e19b2d (diff) |
volume: Fix incorrect usage of PA_VOLUME_IS_VALID
The commit that introduced this macro was incorrect in some places. This
patch fixes these. Thanks to Pierre-Louis Bossart for pointing this out.
Diffstat (limited to 'src/modules/dbus/iface-stream.c')
-rw-r--r-- | src/modules/dbus/iface-stream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/dbus/iface-stream.c b/src/modules/dbus/iface-stream.c index 364572b8..df00f0ea 100644 --- a/src/modules/dbus/iface-stream.c +++ b/src/modules/dbus/iface-stream.c @@ -378,7 +378,7 @@ static void handle_set_volume(DBusConnection *conn, DBusMessage *msg, DBusMessag } for (i = 0; i < n_volume_entries; ++i) { - if (PA_VOLUME_IS_VALID(volume[i])) { + if (!PA_VOLUME_IS_VALID(volume[i])) { pa_dbus_send_error(conn, msg, DBUS_ERROR_INVALID_ARGS, "Too large volume value: %u", volume[i]); return; } |