diff options
author | Max Kellermann <max@duempel.org> | 2009-01-24 13:20:07 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-24 13:20:07 +0100 |
commit | ae2d13ac3e480a03d20a7158ee7492059f27ed52 (patch) | |
tree | 39e297375a21d7d97e7a8ff4b76f4092adc8d68b /src/playlist.h | |
parent | 82df4cb2b0dfdb58e7b459bcf5cf2a286c8c640a (diff) | |
download | mpd-ae2d13ac3e480a03d20a7158ee7492059f27ed52.tar.gz mpd-ae2d13ac3e480a03d20a7158ee7492059f27ed52.tar.xz mpd-ae2d13ac3e480a03d20a7158ee7492059f27ed52.zip |
playlist: moved stopOnError and errorCount into struct playlist
Moved the 2 remaining global variables into the playlist struct.
Diffstat (limited to '')
-rw-r--r-- | src/playlist.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h index eaaba9647..7a6a3a8d7 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -56,6 +56,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 * which is currently being played. |