aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorksooo <3226626+ksooo@users.noreply.github.com>2023-08-26 14:18:53 +0200
committerksooo <3226626+ksooo@users.noreply.github.com>2023-08-27 00:39:47 +0200
commit7c563d7bc5288404c76d9ef85cfa5eaff1d3e1d5 (patch)
tree736e7518c3c7ad37f79d2a5db371176c31391931
parentf21dc98d0cadd5932e3fe0b4cfddb6e35dd55425 (diff)
[PVR] Fix TV channel subtitles not displayed on playback start, although activated in subtitle settings.
-rw-r--r--xbmc/video/dialogs/GUIDialogSubtitleSettings.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/xbmc/video/dialogs/GUIDialogSubtitleSettings.cpp b/xbmc/video/dialogs/GUIDialogSubtitleSettings.cpp
index 1c2c742ab2..24f2618422 100644
--- a/xbmc/video/dialogs/GUIDialogSubtitleSettings.cpp
+++ b/xbmc/video/dialogs/GUIDialogSubtitleSettings.cpp
@@ -99,6 +99,11 @@ void CGUIDialogSubtitleSettings::OnSettingChanged(const std::shared_ptr<const CS
if (settingId == SETTING_SUBTITLE_ENABLE)
{
bool value = std::static_pointer_cast<const CSettingBool>(setting)->GetValue();
+ if (value)
+ {
+ // Ensure that we use/store the subtitle stream the user currently sees in the dialog.
+ appPlayer->SetSubtitle(m_subtitleStream);
+ }
appPlayer->SetSubtitleVisible(value);
}
else if (settingId == SETTING_SUBTITLE_DELAY)