set captionExists to true if selectedIndex is bigger than capt source

This commit is contained in:
Marios Tasos 2017-03-22 13:38:08 +02:00
parent 9c867edfbc
commit c205c47509

View File

@ -1401,7 +1401,7 @@
plyr.captionExists = false;
log('No caption track found');
} else if ((config.captions.selectedIndex + 1) > captionSources.length) {
plyr.captionExists = false;
plyr.captionExists = true;
log('Caption index out of bound');
} else {
captionSrc = captionSources[config.captions.selectedIndex];