[longomatch] Implement a temporary solution for multiple windows
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Implement a temporary solution for multiple windows
- Date: Tue, 31 Mar 2015 17:34:35 +0000 (UTC)
commit abe829ea89597c40a9316fc9a5a2228af3da4e94
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Mar 25 18:33:07 2015 +0100
Implement a temporary solution for multiple windows
LongoMatch.Services/Services/PlayerController.cs | 17 +++++++++++------
1 files changed, 11 insertions(+), 6 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlayerController.cs
b/LongoMatch.Services/Services/PlayerController.cs
index 2d8f239..7097a62 100644
--- a/LongoMatch.Services/Services/PlayerController.cs
+++ b/LongoMatch.Services/Services/PlayerController.cs
@@ -48,6 +48,7 @@ namespace LongoMatch.Services
TimelineEvent loadedEvent;
IPlaylistElement loadedPlaylistElement;
Playlist loadedPlaylist;
+ List<IntPtr> windowHandles;
Time streamLenght, videoTS, imageLoadedTS;
bool readyToSeek, stillimageLoaded, ready, delayedOpen;
@@ -110,8 +111,16 @@ namespace LongoMatch.Services
}
public List<IntPtr> WindowHandles {
- set;
- protected get;
+ set {
+ /* FIXME: handle multiple handles when IMultiplayer is implemented */
+ if (value != null) {
+ player.WindowHandle = value [0];
+ }
+ windowHandles = value;
+ }
+ protected get {
+ return windowHandles;
+ }
}
public IntPtr WindowHandle {
@@ -338,7 +347,6 @@ namespace LongoMatch.Services
{
Log.Debug ("Seek to previous frame");
if (!StillImageLoaded) {
- EmitLoadDrawings (null);
if (CurrentTime > loadedSegment.Start) {
seeker.Seek (SeekType.StepDown);
}
@@ -352,7 +360,6 @@ namespace LongoMatch.Services
if (StillImageLoaded) {
return;
}
- EmitLoadDrawings (null);
PerformStep (Step);
}
@@ -362,7 +369,6 @@ namespace LongoMatch.Services
if (StillImageLoaded) {
return;
}
- EmitLoadDrawings (null);
PerformStep (new Time (-Step.MSeconds));
}
@@ -759,7 +765,6 @@ namespace LongoMatch.Services
}
Log.Debug (String.Format ("Stepping {0} seconds from {1} to {2}",
step, CurrentTime, pos));
- EmitLoadDrawings (null);
Seek (pos, true);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]