[longomatch] Use the last frame instead of seeking



commit 49fda903fc8237244eee90a749158ef63e671c6e
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Sun Apr 10 17:26:13 2011 +0200

    Use the last frame instead of seeking

 LongoMatch/Handlers/EventsManager.cs |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch/Handlers/EventsManager.cs b/LongoMatch/Handlers/EventsManager.cs
index 753c190..834686d 100644
--- a/LongoMatch/Handlers/EventsManager.cs
+++ b/LongoMatch/Handlers/EventsManager.cs
@@ -417,16 +417,14 @@ namespace LongoMatch
 			Pixbuf pixbuf=null;
 			DrawingTool dialog = new DrawingTool();
 
-			player.SeekTo(time,true);
-			while (pixbuf == null)
-				pixbuf = player.CurrentFrame;
+			player.Pause();
+			pixbuf = player.CurrentFrame;
 
 			dialog.Image = pixbuf;
 			dialog.TransientFor = (Gtk.Window)player.Toplevel;
 			if (selectedTimeNode != null)
 				dialog.SetPlay((selectedTimeNode as MediaTimeNode),
 				               time);
-			player.Pause();
 			pixbuf.Dispose();
 			dialog.Run();
 			dialog.Destroy();



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