VideoAnnotationPanel: properly handle subtitles track change (fixes #2455)

This commit is contained in:
rlx 2014-09-03 14:27:49 +02:00
parent 5aaeda46c5
commit 028f19fd1c

View file

@ -1401,7 +1401,6 @@ Ox.VideoAnnotationPanel = function(options, self) {
subtitles,
toggleSubtitles = enableSubtitles != self.options.enableSubtitles;
self.options.enableSubtitles = enableSubtitles;
subtitles = getSubtitles();
if (toggleSubtitles) {
self.$player.forEach(function($player) {
$player.options({
@ -1414,15 +1413,10 @@ Ox.VideoAnnotationPanel = function(options, self) {
} else {
self.$player.forEach(function($player) {
$player.options({
subtitles: subtitles
subtitlesTrack: self.options.subtitlesTrack
});
});
}
self.$timeline.forEach(function($timeline) {
$timeline.options({
subtitles: subtitles
});
});
}
function showKeyboardShortcuts() {