From 42966e8c68009d8f16dc17638ede741dbd113965 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sun, 18 Oct 2015 07:51:10 +0000 Subject: [PATCH] * fix conversion issues by returning a Long value --- source/net/filebot/format/MediaBindingBean.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/net/filebot/format/MediaBindingBean.java b/source/net/filebot/format/MediaBindingBean.java index 9ceb85d5..74e5d934 100644 --- a/source/net/filebot/format/MediaBindingBean.java +++ b/source/net/filebot/format/MediaBindingBean.java @@ -626,8 +626,8 @@ public class MediaBindingBean { } @Define("duration") - public Float getDuration() { - return new Float(getMediaInfo(StreamKind.General, 0, "Duration")); + public Long getDuration() { + return new Double(getMediaInfo(StreamKind.General, 0, "Duration")).longValue(); } @Define("seconds")