[longomatch/redesign2: 2/159] Use the last frame instead of seeking
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign2: 2/159] Use the last frame instead of seeking
- Date: Thu, 2 Jun 2011 00:10:34 +0000 (UTC)
commit b5e87eb0af09c86008e26c10c2363a5cb6c4a00f
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]