* make sure {duration} is an Integer value
This commit is contained in:
parent
8f5e6d37c9
commit
4b0fb75339
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue