[longomatch] After remuxing of captured file we need to overwrite MediaFile, not append.



commit 21796a12e26021cffa9f7c30c161e78901aa38d7
Author: Julien Moutte <julien fluendo com>
Date:   Tue Apr 28 12:02:35 2015 +0200

    After remuxing of captured file we need to overwrite MediaFile, not append.
    
    This fixes a bug in live capture where projects where created with 2 media files in the fileset.

 LongoMatch.Services/ProjectsManager.cs |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/LongoMatch.Services/ProjectsManager.cs b/LongoMatch.Services/ProjectsManager.cs
index 81b189e..52d278d 100644
--- a/LongoMatch.Services/ProjectsManager.cs
+++ b/LongoMatch.Services/ProjectsManager.cs
@@ -126,8 +126,7 @@ namespace LongoMatch.Services
                                RemuxOutputFile (Capturer.CaptureSettings.EncodingSettings);
                        
                                Log.Debug ("Reloading saved file: " + filePath);
-                               MediaFile file = multimediaToolkit.DiscoverFile (filePath);
-                               project.Description.FileSet.Add (file);
+                               project.Description.FileSet [0] = multimediaToolkit.DiscoverFile (filePath);
                                project.Periods = Capturer.Periods;
                                Config.DatabaseManager.ActiveDB.AddProject (project);
                        } catch (Exception ex) {


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