From 5541015ac6c0ef686556a303221f3b5250e49e5f Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 Jan 2009 16:17:57 +0100 Subject: command: don't restart player in the "status" command Don't attempt to restart the player if it was stopped, but there were still songs left on the playlist. This looks like it has been a workaround for a bug which has been fixed long time ago. --- src/playlist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/playlist.c') diff --git a/src/playlist.c b/src/playlist.c index 3582dfd98..5d17f8cb9 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -861,6 +861,8 @@ enum playlist_result playPlaylistById(int id, int stopOnError) return playPlaylist(song, stopOnError); } +static void playPlaylistIfPlayerStopped(void); + void syncPlayerAndPlaylist(void) { if (playlist_state != PLAYLIST_STATE_PLAY) @@ -911,7 +913,7 @@ void nextSongInPlaylist(void) } } -void playPlaylistIfPlayerStopped(void) +static void playPlaylistIfPlayerStopped(void) { if (getPlayerState() == PLAYER_STATE_STOP) { enum player_error error = getPlayerError(); -- cgit v1.2.3