[longomatch/fakelive: 23/24] Set a default framerate for projects with unknnown files



commit f4c59956c51ed51b5c7556b4594060b7d5b01a0f
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Thu Mar 4 00:29:32 2010 +0100

    Set a default framerate for projects with unknnown files

 LongoMatch/DB/Project.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/LongoMatch/DB/Project.cs b/LongoMatch/DB/Project.cs
index 56d5727..7570d31 100644
--- a/LongoMatch/DB/Project.cs
+++ b/LongoMatch/DB/Project.cs
@@ -368,8 +368,10 @@ namespace LongoMatch.DB
 			List<MediaTimeNode> playsList= sectionPlaysList[dataSection];
 			int count= playsList.Count+1;
 			string name = sections.GetName(dataSection) + " " +count;
+			// HACK: Used for capture where fps is not specified, asuming PAL 25fps
+			ushort fps = file != null ? file.Fps : (ushort)25;
 
-			tn = new MediaTimeNode(name, start, stop,"",file.Fps,thumbnail);
+			tn = new MediaTimeNode(name, start, stop,"",fps,thumbnail);
 			playsList.Add(tn);
 			return tn;
 		}



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