GNOME Bugzilla – Bug 707744
Song is being replayed when paused.
Last modified: 2014-02-19 15:09:07 UTC
When a song is played, paused it then played it again, it will repeat the song once it ends even though the repeat mode is not repeat song. To reproduce: 1. Play a song 2. Set repeat mode to repeat all 3. Move the position to some seconds before the end 4. Pause playback 5. Continue playback 6. Wait until the song ends Expected: The next song will be played Result: The current song will be played instead
Created attachment 269587 [details] [review] Attachment for pathc When a song is in a paused state and played, the current song should not be loaded again which is the source of the problem and is fixed in the patch.
Review of attachment 269587 [details] [review]: ::: gnomemusic/player.py @@ +375,3 @@ if self.player.get_state(1)[1] != Gst.State.PAUSED: self.stop() + elif self.player.get_state(1)[1] == Gst.State.PAUSED: We don't need elif here @@ +376,3 @@ self.stop() + elif self.player.get_state(1)[1] == Gst.State.PAUSED: + self.player.set_state(Gst.State.PLAYING) The following code duplicates the code further down the function. We should reuse it instead of copying
Fixed in https://git.gnome.org/browse/gnome-music/commit/?id=1d938019ae688aabfa1be928ffe0e9cb3199184d