[longomatch] Fix check for valid cameras config
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Fix check for valid cameras config
- Date: Tue, 31 Mar 2015 17:38:37 +0000 (UTC)
commit cecac663d5fc75a45f27e7017b618743931f6e6d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Mar 31 07:39:49 2015 +0200
Fix check for valid cameras config
LongoMatch.Services/Services/PlayerController.cs | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlayerController.cs
b/LongoMatch.Services/Services/PlayerController.cs
index 9819dc6..f4ed962 100644
--- a/LongoMatch.Services/Services/PlayerController.cs
+++ b/LongoMatch.Services/Services/PlayerController.cs
@@ -632,8 +632,8 @@ namespace LongoMatch.Services
void ApplyCamerasConfig ()
{
+ ValidateVisibleCameras ();
if (multiPlayer != null) {
- ValidateVisibleCameras ();
multiPlayer.ApplyCamerasConfig ();
UpdatePar ();
}
@@ -646,7 +646,8 @@ namespace LongoMatch.Services
{
if (FileSet != null && camerasVisible != null && camerasVisible.Max () >=
FileSet.Count) {
Log.Error ("Invalid cameras configuration, fixing list of cameras");
- camerasVisible = camerasVisible.Where (i => i < FileSet.Count).ToList<int> ();
+ UpdateCamerasConfig (camerasVisible.Where (i => i <
FileSet.Count).ToList<int> (),
+ CamerasLayout, false);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]