[longomatch] Handle forward seeks in the player
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Handle forward seeks in the player
- Date: Mon, 6 Feb 2012 02:13:51 +0000 (UTC)
commit 1a7cee184819eab5b6422bbb95eccc17fa0491d2
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Mon Feb 6 03:10:19 2012 +0100
Handle forward seeks in the player
LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs | 2 ++
LongoMatch.Services/Services/EventsManager.cs | 4 ----
2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
index 14dd1be..9f6d87d 100644
--- a/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
+++ b/LongoMatch.GUI.Multimedia/Gui/PlayerBin.cs
@@ -567,6 +567,8 @@ namespace LongoMatch.Gui
protected virtual void OnPrevbuttonClicked(object sender, System.EventArgs e)
{
+ if (InSegment())
+ SeekInSegment (segmentStartTime);
if(Prev != null)
Prev();
}
diff --git a/LongoMatch.Services/Services/EventsManager.cs b/LongoMatch.Services/Services/EventsManager.cs
index 9ba1b84..f66534f 100644
--- a/LongoMatch.Services/Services/EventsManager.cs
+++ b/LongoMatch.Services/Services/EventsManager.cs
@@ -253,10 +253,6 @@ namespace LongoMatch.Services
protected virtual void OnPrev()
{
- if(selectedTimeNode is Play)
- player.SeekInSegment(selectedTimeNode.Start.MSeconds);
- else if(selectedTimeNode == null)
- player.SeekTo(0,false);
}
protected virtual void OnTimeline2PositionChanged(Time pos)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]