From 07ec93179cf5878f81731934acc50f10b5bf5eee Mon Sep 17 00:00:00 2001 From: j Date: Sat, 5 Mar 2016 15:38:52 +0530 Subject: [PATCH] disable subtitles if disabled via options.enableSubtitles, fixes #2898 --- source/UI/js/Video/VideoPlayer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Video/VideoPlayer.js b/source/UI/js/Video/VideoPlayer.js index 8c390e3e..958acd00 100644 --- a/source/UI/js/Video/VideoPlayer.js +++ b/source/UI/js/Video/VideoPlayer.js @@ -2343,7 +2343,7 @@ Ox.VideoPlayer = function(options, self) { } function setSubtitlesTrack() { - var enableSubtitles = !!self.options.subtitlesTrack, + var enableSubtitles = self.options.enableSubtitles && !!self.options.subtitlesTrack, toggleSubtitles = enableSubtitles != self.options.enableSubtitles; self.options.enableSubtitles = enableSubtitles; setSubtitle();