[vlc-commits] inhibit/dbus: fix flawed logic
Rémi Denis-Courmont
git at videolan.org
Sun Sep 3 11:01:59 CEST 2017
vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Sep 2 19:51:51 2017 +0300| [2611c6c1e83e102c105496aade27546a9f5f8b8b] | committer: Rémi Denis-Courmont
inhibit/dbus: fix flawed logic
(cherry picked from commit bfb8ace0523a0b4f66a86b87f7cb11adbfb095ea)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=2611c6c1e83e102c105496aade27546a9f5f8b8b
---
modules/misc/inhibit/dbus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/misc/inhibit/dbus.c b/modules/misc/inhibit/dbus.c
index d878bf9fd8..b58ca069a5 100644
--- a/modules/misc/inhibit/dbus.c
+++ b/modules/misc/inhibit/dbus.c
@@ -159,9 +159,9 @@ static void Inhibit(vlc_inhibit_t *ih, unsigned flags)
else
{
assert(sys->cookie != 0);
- if (!dbus_message_append_args(msg, DBUS_TYPE_UINT32, &sys->cookie,
+ if (dbus_message_append_args(msg, DBUS_TYPE_UINT32, &sys->cookie,
DBUS_TYPE_INVALID)
- || !dbus_connection_send (sys->conn, msg, NULL))
+ && dbus_connection_send (sys->conn, msg, NULL))
sys->cookie = 0;
}
dbus_connection_flush(sys->conn);
More information about the vlc-commits
mailing list