Skip to content

player: Fix repeat all mode with only one song

Jean Felder requested to merge wip/jfelder/3-32-fix-repeat-all-one-song into gnome-3-32

Commits 7a7db137 and b6467bf4 fixed an issue with the player: it was impossible to change the current song when the player was on pause. However, it broke the repeat song mode and repeat all mode if the playlist has only one song. Indeed, at the end of a song, a new song is loaded only if the song url has changed. But, if the repeat all mode is set and the playlist has only one song, the url is unchanged.

The repeat song case had already been solved by commit fcebe9ec. Adding a check to test if the repeat mode is in a loop (RepeatMode.SONG or RepeatMode.ALL is set) fixes the issue for both cases.

This is a backport based on commit de4b72c6

Merge request reports