[rygel] core: Duration needs conversion to nano-seconds



commit 269a6fddf89193cb760d4bc3f23a613bdb58d268
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Dec 10 18:08:30 2009 +0200

    core: Duration needs conversion to nano-seconds

 src/rygel/rygel-http-time-seek.vala |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-time-seek.vala b/src/rygel/rygel-http-time-seek.vala
index 0daa4ec..7bffc72 100644
--- a/src/rygel/rygel-http-time-seek.vala
+++ b/src/rygel/rygel-http-time-seek.vala
@@ -35,6 +35,7 @@ internal class Rygel.HTTPTimeSeek : Rygel.HTTPSeek {
         string range, time;
         string[] range_tokens;
         int64 start = 0, stop = -1;
+        int64 duration = request.item.duration * SECOND;
 
         range = request.msg.request_headers.get ("TimeSeekRange.dlna.org");
         assert (range != null);
@@ -73,7 +74,7 @@ internal class Rygel.HTTPTimeSeek : Rygel.HTTPSeek {
         base (request.msg,
               start,
               stop,
-              request.item.duration);
+              duration);
     }
 
     public static bool needed (HTTPRequest request) {



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