[banshee/stable-2.6] Shuffler: fix Repeat-OFF mode when Shuffle is ON (bgo#724515)
- From: Andrés Aragoneses <aaragoneses src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/stable-2.6] Shuffler: fix Repeat-OFF mode when Shuffle is ON (bgo#724515)
- Date: Mon, 17 Feb 2014 01:40:53 +0000 (UTC)
commit 391f9f6e6243f07eb8c51abe10aad7a2f8181faf
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Mon Feb 17 01:32:56 2014 +0100
Shuffler: fix Repeat-OFF mode when Shuffle is ON (bgo#724515)
Shuffler should only retry calling GetRandomTrack() when
the previous call returned null and repeat is ON, regardless
of the shuffle mode.
.../Banshee.Collection.Database/Shuffler.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
b/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
index 296d496..6a0d0c1 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/Shuffler.cs
@@ -168,7 +168,7 @@ namespace Banshee.Collection.Database
}
TrackInfo track = GetRandomTrack (mode, repeat, resetSinceTime);
- if (track == null && (repeat || mode != "off")) {
+ if (track == null && repeat) {
random_began_at = (random_began_at == last_random) ? DateTime.Now : last_random;
track = GetRandomTrack (mode, repeat, true);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]