mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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.
This commit is contained in:
parent
340729d66f
commit
9b8f20f617
4 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue