Playlist: move playlist_increment_version_all() into the class
This commit is contained in:
parent
3e5f09be0b
commit
4bef0a1e62
@ -31,9 +31,9 @@
|
||||
#define G_LOG_DOMAIN "playlist"
|
||||
|
||||
void
|
||||
playlist_increment_version_all(struct playlist *playlist)
|
||||
playlist::FullIncrementVersions()
|
||||
{
|
||||
playlist->queue.ModifyAll();
|
||||
queue.ModifyAll();
|
||||
idle_add(IDLE_PLAYLIST);
|
||||
}
|
||||
|
||||
|
@ -131,6 +131,8 @@ public:
|
||||
|
||||
void TagChanged();
|
||||
|
||||
void FullIncrementVersions();
|
||||
|
||||
enum playlist_result AppendSong(player_control &pc,
|
||||
struct song *song,
|
||||
unsigned *added_id=nullptr);
|
||||
@ -254,7 +256,4 @@ public:
|
||||
void
|
||||
playlist_global_init();
|
||||
|
||||
void
|
||||
playlist_increment_version_all(struct playlist *playlist);
|
||||
|
||||
#endif
|
||||
|
@ -155,7 +155,7 @@ static void update_finished_event(void)
|
||||
|
||||
if (modified) {
|
||||
/* send "idle" events */
|
||||
playlist_increment_version_all(&global_partition->playlist);
|
||||
global_partition->playlist.FullIncrementVersions();
|
||||
idle_add(IDLE_DATABASE);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user