[banshee] Bookmark: Fix loading of bookmarks so that playing starts



commit ef3c4e8218deedca9da7906b394c1e3305807131
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Tue Sep 13 19:50:10 2011 +0200

    Bookmark: Fix loading of bookmarks so that playing starts
    
    If we only call PlayerEngine.Open() we stay at the Loading state and
    PlayerEngine.CanSeek never becomes true, so we can't seek to the
    bookmark location.
    
    Calling PlayerEngine.OpenPlay() makes sure we reach the state where we
    can seek and the track actually plays. This might bring back a bit of
    stutter, if we happen to start playing before seeking, but it's better
    than not playing at all.

 .../Banshee.Collection.Database/Bookmark.cs        |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Core/Banshee.Services/Banshee.Collection.Database/Bookmark.cs b/src/Core/Banshee.Services/Banshee.Collection.Database/Bookmark.cs
index ddc17a0..4fe4a70 100644
--- a/src/Core/Banshee.Services/Banshee.Collection.Database/Bookmark.cs
+++ b/src/Core/Banshee.Services/Banshee.Collection.Database/Bookmark.cs
@@ -115,7 +115,7 @@ namespace Banshee.Collection.Database
                 // Not already playing this track, so load it up
                 //Console.WriteLine ("JumpTo: not already playing, loading it up");
                 ServiceManager.PlayerEngine.ConnectEvent (HandleStateChanged, PlayerEvent.StateChange);
-                ServiceManager.PlayerEngine.Open (track);
+                ServiceManager.PlayerEngine.OpenPlay (track);
             } else {
                 // Already playing this track, so just seek to the right position
                 if (ServiceManager.PlayerEngine.CanSeek) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]