[longomatch] Pause the player for framestepping



commit 293c37a8c01c7fb5128b5b41f3d0403575d5fbf0
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Tue Sep 21 14:27:09 2010 +0200

    Pause the player for framestepping

 CesarPlayer/Gui/PlayerBin.cs |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/CesarPlayer/Gui/PlayerBin.cs b/CesarPlayer/Gui/PlayerBin.cs
index 411fe89..d62018e 100644
--- a/CesarPlayer/Gui/PlayerBin.cs
+++ b/CesarPlayer/Gui/PlayerBin.cs
@@ -244,6 +244,8 @@ namespace LongoMatch.Gui
 		public void SeekToNextFrame(bool in_segment){
 			int currentTime = (int)player.CurrentTime;
 			if (segmentStopTime==0 | currentTime < segmentStopTime){
+				if (player.Playing)
+					player.Pause();
 				player.SeekToNextFrame( GetRateFromScale(), in_segment);
 				if (SeekEvent != null)
 					SeekEvent(currentTime );
@@ -254,6 +256,8 @@ namespace LongoMatch.Gui
 		public void SeekToPreviousFrame(bool in_segment){
 			long currentTime = player.CurrentTime;
 			if (currentTime> segmentStartTime){
+				if (player.Playing)
+					player.Pause();
 				player.SeekToPreviousFrame( GetRateFromScale(),in_segment);
 				if (SeekEvent != null)
 					SeekEvent(currentTime);



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