[longomatch] Only create a independent frames capturer for file projects



commit 82409acc184efdf2bec1dcffdd4e044fc448cb42
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Aug 28 20:30:44 2014 +0200

    Only create a independent frames capturer for file projects

 LongoMatch.Services/Services/EventsManager.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch.Services/Services/EventsManager.cs b/LongoMatch.Services/Services/EventsManager.cs
index f4f1bf1..30ef943 100644
--- a/LongoMatch.Services/Services/EventsManager.cs
+++ b/LongoMatch.Services/Services/EventsManager.cs
@@ -63,7 +63,9 @@ namespace LongoMatch.Services
                        if (project == null)
                                return;
                                
-                       framesCapturer.Open (openedProject.Description.File.FilePath);
+                       if (projectType == ProjectType.FileProject) {
+                               framesCapturer.Open (openedProject.Description.File.FilePath);
+                       }
                        this.analysisWindow = analysisWindow;
                        player = analysisWindow.Player;
                        capturer = analysisWindow.Capturer;


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