[banshee/1.5.1-fixes: 30/56] [PlayQueueSource] Advance the current track if StopWhenFinished is on
- From: Gabriel Burt <gburt src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/1.5.1-fixes: 30/56] [PlayQueueSource] Advance the current track if StopWhenFinished is on
- Date: Mon, 22 Mar 2010 18:06:36 +0000 (UTC)
commit 67955838efa95d88f49fb7b36e763a85f78a0899
Author: Alexander Kojevnikov <alexander kojevnikov com>
Date: Wed Nov 11 16:59:51 2009 +1100
[PlayQueueSource] Advance the current track if StopWhenFinished is on
Fixes the second issue from bgo#563021
.../Banshee.PlayQueue/PlayQueueSource.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
index c35381e..ee1f510 100644
--- a/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
+++ b/src/Extensions/Banshee.PlayQueue/Banshee.PlayQueue/PlayQueueSource.cs
@@ -481,6 +481,12 @@ namespace Banshee.PlayQueue
ServiceManager.PlaybackController.StopWhenFinished = true;
}
}
+ if (ServiceManager.PlaybackController.StopWhenFinished) {
+ if (current_track != null && ServiceManager.PlayerEngine.CurrentTrack == current_track) {
+ int index = TrackModel.IndexOf (current_track) + 1;
+ SetCurrentTrack (index < Count ? TrackModel[index] as DatabaseTrackInfo : null);
+ }
+ }
} else if (args.Event == PlayerEvent.StartOfStream) {
if (TrackModel.IndexOf (ServiceManager.PlayerEngine.CurrentTrack) != -1) {
SetCurrentTrack (ServiceManager.PlayerEngine.CurrentTrack as DatabaseTrackInfo);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]