[grilo-plugins] apple-trailers: Fix duration



commit 9ad7bfd2f117a8b2e053861d9f8afdbf681e9bf5
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 17 08:58:48 2014 +0100

    apple-trailers: Fix duration
    
    The length are in mins:secs not hours:mins.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=722398

 src/apple-trailers/grl-apple-trailers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/apple-trailers/grl-apple-trailers.c b/src/apple-trailers/grl-apple-trailers.c
index cc94ee2..3697713 100644
--- a/src/apple-trailers/grl-apple-trailers.c
+++ b/src/apple-trailers/grl-apple-trailers.c
@@ -307,7 +307,7 @@ runtime_to_seconds (const gchar *runtime)
   seconds = 0;
   items = g_strsplit (runtime, ":", -1);
   if (items && items[0] && items[1])
-    seconds = 3600 * atoi (items[0]) + 60 * atoi (items[1]);
+    seconds = 60 * atoi (items[0]) + atoi (items[1]);
   g_strfreev (items);
 
   return seconds;


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