[longomatch] Start and close the frames capturer for each project change
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Start and close the frames capturer for each project change
- Date: Wed, 24 Sep 2014 20:23:47 +0000 (UTC)
commit 956a0edfaf213bbc701042eeba78eac539caef2d
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Fri Sep 5 14:16:07 2014 +0200
Start and close the frames capturer for each project change
LongoMatch.Services/Services/EventsManager.cs | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/LongoMatch.Services/Services/EventsManager.cs b/LongoMatch.Services/Services/EventsManager.cs
index ece685a..d6f78fa 100644
--- a/LongoMatch.Services/Services/EventsManager.cs
+++ b/LongoMatch.Services/Services/EventsManager.cs
@@ -49,21 +49,26 @@ namespace LongoMatch.Services
{
this.guiToolkit = guiToolkit;
this.renderer = renderer;
- framesCapturer = Config.MultimediaToolkit.GetFramesCapturer ();
ConnectSignals ();
}
void HandleOpenedProjectChanged (Project project, ProjectType projectType,
- PlaysFilter filter, IAnalysisWindow analysisWindow)
+ PlaysFilter filter, IAnalysisWindow analysisWindow)
{
this.openedProject = project;
this.projectType = projectType;
this.filter = filter;
- if (project == null)
+ if (project == null) {
+ if (framesCapturer != null) {
+ framesCapturer.Dispose ();
+ framesCapturer = null;
+ }
return;
-
+ }
+
if (projectType == ProjectType.FileProject) {
+ framesCapturer = Config.MultimediaToolkit.GetFramesCapturer ();
framesCapturer.Open (openedProject.Description.File.FilePath);
}
this.analysisWindow = analysisWindow;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]