[longomatch] Add Duration property to MediaFile
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Add Duration property to MediaFile
- Date: Mon, 7 Jul 2014 11:26:37 +0000 (UTC)
commit 264b2aea744af728502c49829ad8b9cb38185746
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Tue Jun 3 19:08:02 2014 +0200
Add Duration property to MediaFile
LongoMatch.Core/Store/MediaFile.cs | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/LongoMatch.Core/Store/MediaFile.cs b/LongoMatch.Core/Store/MediaFile.cs
index b8207ad..0d05cef 100644
--- a/LongoMatch.Core/Store/MediaFile.cs
+++ b/LongoMatch.Core/Store/MediaFile.cs
@@ -87,6 +87,12 @@ namespace LongoMatch.Store
}
}
+ public Time Duration {
+ get {
+ return new Time ((int) length);
+ }
+ }
+
public long Length {
get {
return this.length;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]