trigger empdd status pings immediately in more method calls
this greatly improves ui responsiveness
This commit is contained in:
parent
f501bb4542
commit
4db0a19dd3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue