discomfitor pushed a commit to branch master.

http://git.enlightenment.org/apps/empc.git/commit/?id=4db0a19dd39cf09c1b0d3e0fea7a47a2e86dfcc8

commit 4db0a19dd39cf09c1b0d3e0fea7a47a2e86dfcc8
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Feb 8 11:52:46 2016 -0500

    trigger empdd status pings immediately in more method calls
    
    this greatly improves ui responsiveness
---
 src/bin/empdd.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/bin/empdd.c b/src/bin/empdd.c
index 94dafea..9aebb70 100644
--- a/src/bin/empdd.c
+++ b/src/bin/empdd.c
@@ -959,7 +959,7 @@ _dbus_seek_cb(const Eldbus_Service_Interface *iface 
EINA_UNUSED, const Eldbus_Me
         snprintf(pos, sizeof(pos), "%u", seconds);
         cmd_append(EMPD_COMMAND_SEEK);
         mpd_async_send_command(empd->async, "seekid", id, pos, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
    return eldbus_message_method_return_new(msg);
 }
@@ -978,7 +978,7 @@ _dbus_playid_cb(const Eldbus_Service_Interface *iface 
EINA_UNUSED, const Eldbus_
         snprintf(id, sizeof(id), "%u", songid);
         cmd_append(EMPD_COMMAND_PLAY_ID);
         mpd_async_send_command(empd->async, "playid", id, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
    return eldbus_message_method_return_new(msg);
 }
@@ -1002,14 +1002,14 @@ _dbus_play_cb(const Eldbus_Service_Interface *iface 
EINA_UNUSED, const Eldbus_Me
              snprintf(pos, sizeof(pos), "%u", songpos);
              cmd_append(EMPD_COMMAND_PLAY);
              mpd_async_send_command(empd->async, "play", pos, NULL);
-             fdh_update();
+             pinger_cb(NULL);
           }
      }
    else
      {
         cmd_append(EMPD_COMMAND_PLAY);
         mpd_async_send_command(empd->async, "play", NULL, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
    return eldbus_message_method_return_new(msg);
 }
@@ -1090,7 +1090,7 @@ _dbus_delete_list_cb(const Eldbus_Service_Interface 
*iface EINA_UNUSED, const El
           snprintf(s, sizeof(s), "%d:%d", start, start + num);
         cmd_append(EMPD_COMMAND_DELETE_LIST);
         mpd_async_send_command(empd->async, "delete", s, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
 
    return eldbus_message_method_return_new(msg);
@@ -1107,7 +1107,7 @@ _dbus_add_list_cb(const Eldbus_Service_Interface *iface 
EINA_UNUSED, const Eldbu
      {
         cmd_append(EMPD_COMMAND_ADD_LIST);
         mpd_async_send_command(empd->async, "add", uri, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
 
    return eldbus_message_method_return_new(msg);
@@ -1128,7 +1128,7 @@ _dbus_addid_list_cb(const Eldbus_Service_Interface *iface 
EINA_UNUSED, const Eld
         cmd_append(EMPD_COMMAND_ADDID_LIST);
         snprintf(buf, sizeof(buf), "%u", pos);
         mpd_async_send_command(empd->async, "addid", uri, buf, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
 
    return eldbus_message_method_return_new(msg);
@@ -1155,7 +1155,7 @@ _dbus_move_list_cb(const Eldbus_Service_Interface *iface 
EINA_UNUSED, const Eldb
         snprintf(s2, sizeof(s2), "%u", target);
         cmd_append(EMPD_COMMAND_MOVE_LIST);
         mpd_async_send_command(empd->async, "move", s, s2, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
 
    return eldbus_message_method_return_new(msg);
@@ -1206,7 +1206,7 @@ _dbus_load_playlist_cb(const Eldbus_Service_Interface 
*iface EINA_UNUSED, const
      {
         cmd_append(EMPD_COMMAND_LOAD_PLAYLIST);
         mpd_async_send_command(empd->async, "load", uri, NULL);
-        fdh_update();
+        pinger_cb(NULL);
      }
 
    return eldbus_message_method_return_new(msg);

-- 


Reply via email to