[longomatch] Seek method now takes a synchronous parameter.
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Seek method now takes a synchronous parameter.
- Date: Fri, 10 Oct 2014 23:42:43 +0000 (UTC)
commit 545845d3b683080f5c743c70a4dec78035f4717d
Author: Julien Moutte <julien fluendo com>
Date: Fri Oct 10 16:39:08 2014 +0200
Seek method now takes a synchronous parameter.
LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs | 2 +-
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 3 +--
LongoMatch.Multimedia/Player/GstPlayer.cs | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
b/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
index a77e764..4948630 100644
--- a/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
+++ b/LongoMatch.Core/Interfaces/Multimedia/IPlayer.cs
@@ -46,7 +46,7 @@ namespace LongoMatch.Core.Interfaces.Multimedia
void Pause();
void Stop();
void Close();
- bool Seek (Time time, bool accurate);
+ bool Seek (Time time, bool accurate = false, bool synchronous = false);
bool SeekToNextFrame();
bool SeekToPreviousFrame();
Image GetCurrentFrame (int width=-1, int height=-1);
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index ecf1c0c..ad81c0b 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -486,9 +486,8 @@ namespace LongoMatch.Gui
{
Pause ();
ignoreTick = true;
- player.Seek (drawing.Render + activeFile.Offset, true);
+ player.Seek (drawing.Render + activeFile.Offset, true, true);
ignoreTick = false;
- /* FIXME: wait until seek is done */
LoadImage (CurrentFrame, drawing);
}
diff --git a/LongoMatch.Multimedia/Player/GstPlayer.cs b/LongoMatch.Multimedia/Player/GstPlayer.cs
index 02fdb39..76d4194 100644
--- a/LongoMatch.Multimedia/Player/GstPlayer.cs
+++ b/LongoMatch.Multimedia/Player/GstPlayer.cs
@@ -433,7 +433,7 @@ namespace LongoMatch.Video.Player
return lgm_video_player_seek (Handle, position);
}
- public bool Seek (Time time, bool accurate)
+ public bool Seek (Time time, bool accurate, bool synchronous)
{
return lgm_video_player_seek_time (Handle, time.NSeconds, accurate);
}
@@ -535,7 +535,7 @@ namespace LongoMatch.Video.Player
public Image GetFrame (Time pos, bool accurate, int outwidth=-1, int outheight=-1)
{
- Seek (pos, accurate);
+ Seek (pos, accurate, false);
Pause ();
return GetCurrentFrame (outwidth, outheight);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]