From ae2d13ac3e480a03d20a7158ee7492059f27ed52 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 24 Jan 2009 13:20:07 +0100 Subject: playlist: moved stopOnError and errorCount into struct playlist Moved the 2 remaining global variables into the playlist struct. --- src/playlist.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index eaaba9647..7a6a3a8d7 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -55,6 +55,20 @@ typedef struct _Playlist { */ bool playing; + /** + * If true, then any error is fatal; if false, MPD will + * attempt to play the next song on non-fatal errors. During + * seeking, this flag is set. + */ + bool stop_on_error; + + /** + * Number of errors since playback was started. If this + * number exceeds the length of the playlist, MPD gives up, + * because all songs have been tried. + */ + unsigned error_count; + /** * The "current song pointer". This is the song which is * played when we get the "play" command. It is also the song -- cgit v1.2.3