aboutsummaryrefslogtreecommitdiffstats
path: root/src/player.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-26 08:27:17 +0200
committerMax Kellermann <max@duempel.org>2008-08-26 08:27:17 +0200
commit113c1c0af5383d356c9e527f8763566aa5a63ea1 (patch)
tree26402349d1917d591f438e891c6dfa8e8d5ac88b /src/player.h
parentb94af79134678f6998988fea902054c5ce5e34ca (diff)
downloadmpd-113c1c0af5383d356c9e527f8763566aa5a63ea1.tar.gz
mpd-113c1c0af5383d356c9e527f8763566aa5a63ea1.tar.xz
mpd-113c1c0af5383d356c9e527f8763566aa5a63ea1.zip
queueSong() cannot fail
All (indirect) callers of queueSong() ensure that the queue state is BLANK, so there is no need to check it in queueSong() again. As a side effect, queueSong() cannot fail anymore, and can return void. Also, playlist_queueError and all its error handling can go away.
Diffstat (limited to '')
-rw-r--r--src/player.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/player.h b/src/player.h
index b3cf207ec..de237c4ba 100644
--- a/src/player.h
+++ b/src/player.h
@@ -129,7 +129,7 @@ int getPlayerError(void);
void playerWait(void);
-int queueSong(Song * song);
+void queueSong(Song * song);
enum player_queue_state getPlayerQueueState(void);