[longomatch] Set a default framerate for projects with unknnown files
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Set a default framerate for projects with unknnown files
- Date: Thu, 25 Mar 2010 20:47:23 +0000 (UTC)
commit 5442b8e4dca064e7b7082332a7a62d5c9d1e1367
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]