[vlc-devel] commit: Make the dbus plugin not sleep unless the event queue is empty, hopefully (Sigmund Augdal )
git version control
git at videolan.org
Fri Jul 10 14:18:33 CEST 2009
vlc | branch: master | Sigmund Augdal <sigmund at snap.tv> | Wed May 27 16:20:52 2009 +0200| [0da8fc3dd5aecf8fabfe85d843ece95f355910c0] | committer: Jean-Paul Saman
Make the dbus plugin not sleep unless the event queue is empty, hopefully
reduce latency when running many dbus commands.
(cherry picked from commit d66e529d85b9f8111f04519559abb1446e3323d7)
Signed-off-by: Jean-Paul Saman <jean-paul.saman at m2x.nl>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0da8fc3dd5aecf8fabfe85d843ece95f355910c0
---
modules/control/dbus.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/modules/control/dbus.c b/modules/control/dbus.c
index cba2ccd..820622f 100644
--- a/modules/control/dbus.c
+++ b/modules/control/dbus.c
@@ -839,7 +839,9 @@ static void Run ( intf_thread_t *p_intf )
{
for( ;; )
{
- msleep( INTF_IDLE_SLEEP );
+ if( dbus_connection_get_dispatch_status(p_intf->p_sys->p_conn)
+ == DBUS_DISPATCH_COMPLETE )
+ msleep( INTF_IDLE_SLEEP );
int canc = vlc_savecancel();
dbus_connection_read_write_dispatch( p_intf->p_sys->p_conn, 0 );
More information about the vlc-devel
mailing list