[banshee] 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] Shuffler: fix Repeat-OFF mode when Shuffle is ON (bgo#724515)
- Date: Mon, 17 Feb 2014 00:34:14 +0000 (UTC)
commit 5b6400d4052f7ff16188696a3c24e42428cb9686
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 0cdfb7b..1f4fd45 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]