subtitles is undefined

This commit is contained in:
j 2014-10-06 14:45:03 +02:00
parent 9befd5c4b2
commit 93964086ea

View file

@ -1769,7 +1769,7 @@ pandora.getVideoOptions = function(data) {
options.subtitlesLayer
? data.layers[options.subtitlesLayer].map(function(subtitle, i) {
return {
'in': i == 0 ? 0 : subtitles[i - 1].out,
'in': i == 0 ? 0 : data.layers[options.subtitlesLayer][i - 1].out,
out: subtitle['in']
};
}).concat(