fix setting clip.out if not given

This commit is contained in:
j 2014-02-12 15:31:11 +00:00
parent ab17fc8496
commit a5ed8ed8ed

View file

@ -201,7 +201,7 @@ Ox.VideoElement = function(options, self) {
} }
if (item.duration) { if (item.duration) {
if (!item.out) { if (!item.out) {
item.out = item.duration - item['in']; item.out = item.duration;
} }
currentTime += item.duration; currentTime += item.duration;
item.id = getId(item); item.id = getId(item);
@ -210,7 +210,7 @@ Ox.VideoElement = function(options, self) {
Ox.getVideoInfo(item.src, function(info) { Ox.getVideoInfo(item.src, function(info) {
item.duration = info.duration; item.duration = info.duration;
if (!item.out) { if (!item.out) {
item.out = item['in'] + item.duration; item.out = item.duration;
} }
currentTime += item.duration; currentTime += item.duration;
item.id = getId(item); item.id = getId(item);