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"
|
#define G_LOG_DOMAIN "playlist"
|
||||||
|
|
||||||
void
|
void
|
||||||
playlist_increment_version_all(struct playlist *playlist)
|
playlist::FullIncrementVersions()
|
||||||
{
|
{
|
||||||
playlist->queue.ModifyAll();
|
queue.ModifyAll();
|
||||||
idle_add(IDLE_PLAYLIST);
|
idle_add(IDLE_PLAYLIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -131,6 +131,8 @@ public:
|
|||||||
|
|
||||||
void TagChanged();
|
void TagChanged();
|
||||||
|
|
||||||
|
void FullIncrementVersions();
|
||||||
|
|
||||||
enum playlist_result AppendSong(player_control &pc,
|
enum playlist_result AppendSong(player_control &pc,
|
||||||
struct song *song,
|
struct song *song,
|
||||||
unsigned *added_id=nullptr);
|
unsigned *added_id=nullptr);
|
||||||
@ -254,7 +256,4 @@ public:
|
|||||||
void
|
void
|
||||||
playlist_global_init();
|
playlist_global_init();
|
||||||
|
|
||||||
void
|
|
||||||
playlist_increment_version_all(struct playlist *playlist);
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -155,7 +155,7 @@ static void update_finished_event(void)
|
|||||||
|
|
||||||
if (modified) {
|
if (modified) {
|
||||||
/* send "idle" events */
|
/* send "idle" events */
|
||||||
playlist_increment_version_all(&global_partition->playlist);
|
global_partition->playlist.FullIncrementVersions();
|
||||||
idle_add(IDLE_DATABASE);
|
idle_add(IDLE_DATABASE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user