summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-02-08 11:52:46 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-02-06 21:00:36 -0500
commit4db0a19dd39cf09c1b0d3e0fea7a47a2e86dfcc8 (patch)
tree7be2a5aabf14037c0796afa171258a62dcadef5d /src
parentf501bb454200beecafcf88e71c235aa5b1aa422a (diff)
trigger empdd status pings immediately in more method calls
this greatly improves ui responsiveness
Diffstat (limited to 'src')
-rw-r--r--src/bin/empdd.c18
1 files 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
959 snprintf(pos, sizeof(pos), "%u", seconds); 959 snprintf(pos, sizeof(pos), "%u", seconds);
960 cmd_append(EMPD_COMMAND_SEEK); 960 cmd_append(EMPD_COMMAND_SEEK);
961 mpd_async_send_command(empd->async, "seekid", id, pos, NULL); 961 mpd_async_send_command(empd->async, "seekid", id, pos, NULL);
962 fdh_update(); 962 pinger_cb(NULL);
963 } 963 }
964 return eldbus_message_method_return_new(msg); 964 return eldbus_message_method_return_new(msg);
965} 965}
@@ -978,7 +978,7 @@ _dbus_playid_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_
978 snprintf(id, sizeof(id), "%u", songid); 978 snprintf(id, sizeof(id), "%u", songid);
979 cmd_append(EMPD_COMMAND_PLAY_ID); 979 cmd_append(EMPD_COMMAND_PLAY_ID);
980 mpd_async_send_command(empd->async, "playid", id, NULL); 980 mpd_async_send_command(empd->async, "playid", id, NULL);
981 fdh_update(); 981 pinger_cb(NULL);
982 } 982 }
983 return eldbus_message_method_return_new(msg); 983 return eldbus_message_method_return_new(msg);
984} 984}
@@ -1002,14 +1002,14 @@ _dbus_play_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_Me
1002 snprintf(pos, sizeof(pos), "%u", songpos); 1002 snprintf(pos, sizeof(pos), "%u", songpos);
1003 cmd_append(EMPD_COMMAND_PLAY); 1003 cmd_append(EMPD_COMMAND_PLAY);
1004 mpd_async_send_command(empd->async, "play", pos, NULL); 1004 mpd_async_send_command(empd->async, "play", pos, NULL);
1005 fdh_update(); 1005 pinger_cb(NULL);
1006 } 1006 }
1007 } 1007 }
1008 else 1008 else
1009 { 1009 {
1010 cmd_append(EMPD_COMMAND_PLAY); 1010 cmd_append(EMPD_COMMAND_PLAY);
1011 mpd_async_send_command(empd->async, "play", NULL, NULL); 1011 mpd_async_send_command(empd->async, "play", NULL, NULL);
1012 fdh_update(); 1012 pinger_cb(NULL);
1013 } 1013 }
1014 return eldbus_message_method_return_new(msg); 1014 return eldbus_message_method_return_new(msg);
1015} 1015}
@@ -1090,7 +1090,7 @@ _dbus_delete_list_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const El
1090 snprintf(s, sizeof(s), "%d:%d", start, start + num); 1090 snprintf(s, sizeof(s), "%d:%d", start, start + num);
1091 cmd_append(EMPD_COMMAND_DELETE_LIST); 1091 cmd_append(EMPD_COMMAND_DELETE_LIST);
1092 mpd_async_send_command(empd->async, "delete", s, NULL); 1092 mpd_async_send_command(empd->async, "delete", s, NULL);
1093 fdh_update(); 1093 pinger_cb(NULL);
1094 } 1094 }
1095 1095
1096 return eldbus_message_method_return_new(msg); 1096 return eldbus_message_method_return_new(msg);
@@ -1107,7 +1107,7 @@ _dbus_add_list_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbu
1107 { 1107 {
1108 cmd_append(EMPD_COMMAND_ADD_LIST); 1108 cmd_append(EMPD_COMMAND_ADD_LIST);
1109 mpd_async_send_command(empd->async, "add", uri, NULL); 1109 mpd_async_send_command(empd->async, "add", uri, NULL);
1110 fdh_update(); 1110 pinger_cb(NULL);
1111 } 1111 }
1112 1112
1113 return eldbus_message_method_return_new(msg); 1113 return eldbus_message_method_return_new(msg);
@@ -1128,7 +1128,7 @@ _dbus_addid_list_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eld
1128 cmd_append(EMPD_COMMAND_ADDID_LIST); 1128 cmd_append(EMPD_COMMAND_ADDID_LIST);
1129 snprintf(buf, sizeof(buf), "%u", pos); 1129 snprintf(buf, sizeof(buf), "%u", pos);
1130 mpd_async_send_command(empd->async, "addid", uri, buf, NULL); 1130 mpd_async_send_command(empd->async, "addid", uri, buf, NULL);
1131 fdh_update(); 1131 pinger_cb(NULL);
1132 } 1132 }
1133 1133
1134 return eldbus_message_method_return_new(msg); 1134 return eldbus_message_method_return_new(msg);
@@ -1155,7 +1155,7 @@ _dbus_move_list_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldb
1155 snprintf(s2, sizeof(s2), "%u", target); 1155 snprintf(s2, sizeof(s2), "%u", target);
1156 cmd_append(EMPD_COMMAND_MOVE_LIST); 1156 cmd_append(EMPD_COMMAND_MOVE_LIST);
1157 mpd_async_send_command(empd->async, "move", s, s2, NULL); 1157 mpd_async_send_command(empd->async, "move", s, s2, NULL);
1158 fdh_update(); 1158 pinger_cb(NULL);
1159 } 1159 }
1160 1160
1161 return eldbus_message_method_return_new(msg); 1161 return eldbus_message_method_return_new(msg);
@@ -1206,7 +1206,7 @@ _dbus_load_playlist_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const
1206 { 1206 {
1207 cmd_append(EMPD_COMMAND_LOAD_PLAYLIST); 1207 cmd_append(EMPD_COMMAND_LOAD_PLAYLIST);
1208 mpd_async_send_command(empd->async, "load", uri, NULL); 1208 mpd_async_send_command(empd->async, "load", uri, NULL);
1209 fdh_update(); 1209 pinger_cb(NULL);
1210 } 1210 }
1211 1211
1212 return eldbus_message_method_return_new(msg); 1212 return eldbus_message_method_return_new(msg);