Browse Source

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 <Anna@NoWheyCreamery.com>
keep-around/257ef3612f560991d4272f96aa5a047c919f29d9
Anna 5 years ago
parent
commit
257ef3612f
  1. 3
      CHANGELOG
  2. 1
      gui/audio.c

3
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

1
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)

Loading…
Cancel
Save