After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 670833 - Recently Played playlist only plays top two songs when sorted by 'Last Played'
Recently Played playlist only plays top two songs when sorted by 'Last Played'
Status: RESOLVED WONTFIX
Product: banshee
Classification: Other
Component: Smart Playlists
2.2.1
Other Linux
: Normal major
: ---
Assigned To: Banshee Maintainers
Banshee Maintainers
gnome[unmaintained]
: 699961 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-02-26 14:35 UTC by stevens.adrian
Modified: 2020-03-17 09:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description stevens.adrian 2012-02-26 14:35:29 UTC
When songs in the 'Recently Played' playlist are sorted by 'Last Played', only the two most recently played songs are played. This appears to be caused by the fact that as the currently playing song finishes playing, it is moved to the top of the list (i.e. the most recently played song) before playback proceeds to the next track. This means that the previously played track is always next in the list and the player therefore continuously loops through the two most recently played songs.
Comment 1 Bertrand Lorentz 2012-03-05 20:03:20 UTC
Thank you for your bug report.

I was able to reproduce the problem with the latest git master : with the situation you described the smart playlist is updated before we choose the next track, so it's always going to be the track that was played before.
Comment 2 Bertrand Lorentz 2013-05-11 09:19:21 UTC
*** Bug 699961 has been marked as a duplicate of this bug. ***
Comment 3 Bertrand Lorentz 2013-05-11 09:20:44 UTC
Here's a patch from the duplicate, which apparently fixes the issues, but it's not really a correct fix.

diff --git a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
index 1fbfcaf..b3ae8bc 100644
--- a/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
+++ b/src/Backends/Banshee.GStreamer/Banshee.GStreamer/PlayerEngine.cs
@@ -439,7 +439,7 @@ namespace Banshee.GStreamer
             //
             // This will be overridden by IncrementLastPlayed () called by
             // PlaybackControllerService's EndOfStream handler.
-            CurrentTrack.UpdateLastPlayed ();
+            //CurrentTrack.UpdateLastPlayed ();

             next_track_set.Reset ();
             pending_uri = null;
Comment 4 André Klapper 2020-03-17 09:18:44 UTC
Banshee is not under active development anymore and had its last code changes more than three years ago. Its codebase has been archived.

Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect
reality. Please feel free to reopen this ticket (or rather transfer the project
to GNOME Gitlab, as GNOME Bugzilla is being shut down) if anyone takes the
responsibility for active development again.
See https://gitlab.gnome.org/Infrastructure/Infrastructure/issues/264 for more info.