[longomatch] Fix jumping to a previous playlist element
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix jumping to a previous playlist element
- Date: Wed, 24 Sep 2014 20:16:17 +0000 (UTC)
commit e337d65a618cc08da2088a3a39041730706c6c00
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Aug 27 11:07:46 2014 +0200
Fix jumping to a previous playlist element
LongoMatch.Services/Services/PlaylistManager.cs | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlaylistManager.cs b/LongoMatch.Services/Services/PlaylistManager.cs
index 1b0b4c3..78161ce 100644
--- a/LongoMatch.Services/Services/PlaylistManager.cs
+++ b/LongoMatch.Services/Services/PlaylistManager.cs
@@ -82,7 +82,11 @@ namespace LongoMatch.Services
void HandlePlaylistElementSelected (Playlist playlist, IPlaylistElement element)
{
Switch (null, playlist, element);
+ if (element != null) {
+ playlist.SetActive (element);
+ }
player.LoadPlayListPlay (playlist, element);
+
}
void HandlePlaySelected (Play play)
@@ -93,7 +97,7 @@ namespace LongoMatch.Services
void HandleNext (Playlist playlist)
{
if (playlist != null && playlist.HasNext ()) {
- HandlePlaylistElementSelected (playlist, playlist.Next ());
+ Config.EventsBroker.EmitPlaylistElementSelected (playlist, playlist.Next());
}
}
@@ -116,7 +120,7 @@ namespace LongoMatch.Services
}
/* Load the next playlist element */
if (playlist.HasPrev ()) {
- HandlePlaylistElementSelected (playlist, playlist.Prev ());
+ Config.EventsBroker.EmitPlaylistElementSelected (playlist,
playlist.Prev());
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]