allow subtitles without tracks property

This commit is contained in:
j 2014-09-16 13:07:55 +02:00
parent 4bcb39e758
commit 7d4aee473e

View file

@ -1971,7 +1971,9 @@ Ox.VideoPlayer = function(options, self) {
self.options.subtitles.map(function(subtitle) { self.options.subtitles.map(function(subtitle) {
return subtitle.tracks; return subtitle.tracks;
}) })
))); ))).filter(function(track) {
return !!track;
});
loadedsubtitles(); loadedsubtitles();
} else { } else {
if (self.options.subtitles.indexOf('\n') > -1) { if (self.options.subtitles.indexOf('\n') > -1) {