fix a bug where the full video would be blacked out even though the user was allowed to see clips

This commit is contained in:
rolux 2011-11-05 21:30:43 +00:00
parent 916606ef51
commit 49d13a1a78

View file

@ -59,7 +59,7 @@ pandora.ui.item = function() {
: Ox.range(0, result.data.duration - 5, 60).map(function(position) {
return {
'in': position + 5,
out: Math.max(position + 60, result.data.duration)
out: Math.min(position + 60, result.data.duration)
};
})
)