diff options
author | Max Kellermann <max@duempel.org> | 2008-11-11 20:46:55 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-11 20:46:55 +0100 |
commit | acf0d141be9bae98311be9479fc46e77f6f87961 (patch) | |
tree | 87e23a8eb9d83483a44d4bce04ed85b1c0784d5c /src/playlist.h | |
parent | 81d2076bcffd78ab8b6cb1bdf13b07d863e977b8 (diff) | |
download | mpd-acf0d141be9bae98311be9479fc46e77f6f87961.tar.gz mpd-acf0d141be9bae98311be9479fc46e77f6f87961.tar.xz mpd-acf0d141be9bae98311be9479fc46e77f6f87961.zip |
playlist: track song metadata changes
When the tag of the current song changes (e.g. a new tag was sent in
the stream), update the playlist, so clients pick up the new tag.
Diffstat (limited to 'src/playlist.h')
-rw-r--r-- | src/playlist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h index 34da9f9af..137475afb 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -54,6 +54,11 @@ typedef struct _Playlist { bool repeat; bool random; uint32_t version; + + /** used by syncCurrentPlayerDecodeMetadata() to detect tag changes */ + const struct song *prev_song; + /** used by syncCurrentPlayerDecodeMetadata() to detect tag changes */ + const struct tag *prev_tag; } Playlist; extern bool playlist_saveAbsolutePaths; |