[longomatch] Support delayed seeking in Seek as well.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Support delayed seeking in Seek as well.
- Date: Wed, 18 Mar 2015 14:41:32 +0000 (UTC)
commit 2e35c7254d1be2dfbc69d799f76863fe2ab38c74
Author: Julien Moutte <julien fluendo com>
Date: Fri Mar 13 18:49:14 2015 +0100
Support delayed seeking in Seek as well.
This was limited to LoadSegment till now.
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 12 ++++++++++--
1 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index 8c0dc73..b878e32 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -353,9 +353,17 @@ namespace LongoMatch.Gui
if (ImageLoaded) {
return;
}
+
DrawingsVisible = false;
- player.Seek (time + activeFile.Offset, accurate);
- OnTick ();
+
+ // Check if we are ready first
+ if (readyToSeek) {
+ player.Seek (time + activeFile.Offset, accurate);
+ OnTick ();
+ } else {
+ Log.Debug ("Delaying seek until player is ready");
+ pendingSeek = new object[3] { time, 1.0f, false };
+ }
}
public void SeekToNextFrame ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]