[player] Reverse args to player_speaker_get_byid() for consistency

This commit is contained in:
ejurgensen
2020-01-03 19:38:52 +01:00
parent af1bc27dd5
commit e61e98bcbb
3 changed files with 5 additions and 5 deletions

View File

@@ -1430,7 +1430,7 @@ jsonapi_reply_outputs_get_byid(struct httpd_request *hreq)
return HTTP_BADREQUEST;
}
ret = player_speaker_get_byid(output_id, &speaker_info);
ret = player_speaker_get_byid(&speaker_info, output_id);
if (ret < 0)
{
@@ -1520,7 +1520,7 @@ jsonapi_reply_outputs_toggle_byid(struct httpd_request *hreq)
return HTTP_BADREQUEST;
}
ret = player_speaker_get_byid(output_id, &spk);
ret = player_speaker_get_byid(&spk, output_id);
if (ret < 0)
{
DPRINTF(E_LOG, L_WEB, "No output found for the given output id, toggle failed for '%s'\n", hreq->uri_parsed->path);
@@ -2629,7 +2629,7 @@ output_volume_set(int volume, int step, uint64_t output_id)
if (step != 0)
{
// Calculate new output volume from the given step value
ret = player_speaker_get_byid(output_id, &speaker_info);
ret = player_speaker_get_byid(&speaker_info, output_id);
if (ret < 0)
{
DPRINTF(E_LOG, L_WEB, "No output found for the given output id .\n");