[vlc-commits] dbus: avoid precedence warning

Rémi Denis-Courmont git at videolan.org
Wed May 8 17:42:30 CEST 2019


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Apr 15 19:48:48 2019 +0300| [c182eacdad8759641b61bb8828739e08ac9c26f3] | committer: Rémi Denis-Courmont

dbus: avoid precedence warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c182eacdad8759641b61bb8828739e08ac9c26f3
---

 modules/control/dbus/dbus_player.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/control/dbus/dbus_player.c b/modules/control/dbus/dbus_player.c
index f08d6a8b36..195d82e717 100644
--- a/modules/control/dbus/dbus_player.c
+++ b/modules/control/dbus/dbus_player.c
@@ -264,7 +264,7 @@ MarshalCanGoNext( intf_thread_t *p_intf, DBusMessageIter *container )
 
     dbus_bool_t b_can_go_next =
         count != 0 &&
-        (index != -1 && (size_t)index < count - 1 ||
+        ((index != -1 && (size_t)index < count - 1) ||
          repeat_mode != VLC_PLAYLIST_PLAYBACK_REPEAT_NONE);
 
     if( !dbus_message_iter_append_basic( container, DBUS_TYPE_BOOLEAN,



More information about the vlc-commits mailing list