Commit d66e529d authored by Sigmund Augdal's avatar Sigmund Augdal Committed by panelpc

Make the dbus plugin not sleep unless the event queue is empty, hopefully

reduce latency when running many dbus commands.
parent 6bb7fbf3
......@@ -1804,7 +1804,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 );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment