queue/Playlist: pass unsigned to PlayOrder()

This commit is contained in:
Max Kellermann 2016-03-18 17:49:29 +01:00
parent 7b70153068
commit 91fb7fa3d8
2 changed files with 3 additions and 3 deletions

View File

@ -152,14 +152,14 @@ playlist::UpdateQueuedSong(PlayerControl &pc, const DetachedSong *prev)
}
bool
playlist::PlayOrder(PlayerControl &pc, int order, Error &error)
playlist::PlayOrder(PlayerControl &pc, unsigned order, Error &error)
{
playing = true;
queued = -1;
const DetachedSong &song = queue.GetOrder(order);
FormatDebug(playlist_domain, "play %i:\"%s\"", order, song.GetURI());
FormatDebug(playlist_domain, "play %u:\"%s\"", order, song.GetURI());
current = order;

View File

@ -271,7 +271,7 @@ public:
bool PlayPosition(PlayerControl &pc, int position, Error &error);
bool PlayOrder(PlayerControl &pc, int order, Error &error);
bool PlayOrder(PlayerControl &pc, unsigned order, Error &error);
bool PlayId(PlayerControl &pc, int id, Error &error);