[longomatch] The CamerasVisible array will always contain the amount of available viewports, which might be less



commit 60079d7aa902f2e081aac4abc7b78b5c4dd1080a
Author: unknown <xartigas fluendo com>
Date:   Fri Mar 27 12:30:27 2015 +0100

    The CamerasVisible array will always contain the amount of available viewports, which might be less than 
the actual number of video streams in the project.

 LongoMatch.Services/Services/PlayerController.cs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Services/Services/PlayerController.cs 
b/LongoMatch.Services/Services/PlayerController.cs
index 1b2a79b..939c444 100644
--- a/LongoMatch.Services/Services/PlayerController.cs
+++ b/LongoMatch.Services/Services/PlayerController.cs
@@ -648,6 +648,7 @@ namespace LongoMatch.Services
                                }
                                foreach (int index in CamerasVisible) {
                                        try {
+                                               if (index >= fileSet.Count) continue;
                                                MediaFile file = fileSet [index];
                                                IntPtr windowHandle = WindowHandles [index];
                                                if (file.VideoHeight != 0) {


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