From 257ef3612f560991d4272f96aa5a047c919f29d9 Mon Sep 17 00:00:00 2001 From: Anna Schumaker Date: Mon, 19 Sep 2016 14:39:31 -0400 Subject: [PATCH] gui/audio: Enable idle polling when the track changes Unplayed, Most Played, and Least Played tracks playlists update themselves with an idle task when tracks have been played. It looks like we haven't been processing these tasks, so the queue was just building up after every track. Fix this by enabling the GTK idle callback whenever a track is played. Fixes #89: Dynamic playlists aren't updating Signed-off-by: Anna Schumaker --- CHANGELOG | 3 +++ gui/audio.c | 1 + 2 files changed, 4 insertions(+) diff --git a/CHANGELOG b/CHANGELOG index 711d8814..1a97f179 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +6.4.20: +- Enable idle processing when tracks are played to update dynamic playlists + 6.4.20-rc: - Use a single GtkTreeModelFilter instance for displaying tracks - Use a single GuiQueueModel instance for displaying tracks diff --git a/gui/audio.c b/gui/audio.c index a7ce5e2d..10080faa 100644 --- a/gui/audio.c +++ b/gui/audio.c @@ -40,6 +40,7 @@ static void __audio_load(struct track *track) gui_view_scroll(); gui_artwork_set_cover(); + gui_idle_enable(); } static void __audio_change_state(GstState state)