* make sure {duration} is an Integer value

This commit is contained in:
Reinhard Pointner 2015-10-20 07:43:23 +00:00
parent 8f5e6d37c9
commit 4b0fb75339
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ public class MediaBindingBean {
@Define("duration")
public Long getDuration() {
return new Double(getMediaInfo(StreamKind.General, 0, "Duration")).longValue();
return (long) Double.parseDouble(getMediaInfo(StreamKind.General, 0, "Duration"));
}
@Define("seconds")