censored empty subtitles

This commit is contained in:
j 2014-10-06 14:54:54 +02:00
parent f97acf8e2f
commit 9b8a9b4ebe

View file

@ -1766,7 +1766,7 @@ pandora.getVideoOptions = function(data) {
options.censored = canPlayVideo ? []
: canPlayClips ? (
options.subtitlesLayer
options.subtitlesLayer && data.layers[options.subtitlesLayer].length
? data.layers[options.subtitlesLayer].map(function(subtitle, i) {
return {
'in': i == 0 ? 0 : data.layers[options.subtitlesLayer][i - 1].out,