[vlc-commits] dbus: use playlist_IsEmpty()
Rémi Denis-Courmont
git at videolan.org
Sun Oct 21 13:01:17 CEST 2018
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Oct 20 23:35:00 2018 +0300| [cef290c89d39abb33c12546eabeda8c45e4967dd] | committer: Rémi Denis-Courmont
dbus: use playlist_IsEmpty()
...rather than playlist_CurrentSize().
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=cef290c89d39abb33c12546eabeda8c45e4967dd
---
modules/control/dbus/dbus.c | 2 +-
modules/control/dbus/dbus_player.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/control/dbus/dbus.c b/modules/control/dbus/dbus.c
index 56e84bb762..9ac4fa3ad0 100644
--- a/modules/control/dbus/dbus.c
+++ b/modules/control/dbus/dbus.c
@@ -554,7 +554,7 @@ static void ProcessEvents( intf_thread_t *p_intf,
{
playlist_t *p_playlist = p_intf->p_sys->p_playlist;
PL_LOCK;
- b_can_play = playlist_CurrentSize( p_playlist ) > 0;
+ b_can_play = !playlist_IsEmpty( p_playlist );
PL_UNLOCK;
if( b_can_play != p_intf->p_sys->b_can_play )
diff --git a/modules/control/dbus/dbus_player.c b/modules/control/dbus/dbus_player.c
index 035e5407d5..8ed079cb46 100644
--- a/modules/control/dbus/dbus_player.c
+++ b/modules/control/dbus/dbus_player.c
@@ -268,7 +268,7 @@ MarshalCanPlay( intf_thread_t *p_intf, DBusMessageIter *container )
playlist_t *p_playlist = p_intf->p_sys->p_playlist;
PL_LOCK;
- dbus_bool_t b_can_play = playlist_CurrentSize( p_playlist ) > 0;
+ dbus_bool_t b_can_play = !playlist_IsEmpty( p_playlist );
PL_UNLOCK;
if( !dbus_message_iter_append_basic( container, DBUS_TYPE_BOOLEAN,
More information about the vlc-commits
mailing list