Skip to content

Commit

Permalink
Subtitles: Don't use a persistent DB setting to control forced subtit…
Browse files Browse the repository at this point in the history
…les.

Instead, always allow forced subtitles when playback starts, and allow
the user to disable/enable forced subtitles during the current
playback.
  • Loading branch information
stichnot committed Nov 27, 2012
1 parent fbe4475 commit 0b7e902
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions mythtv/libs/libmythtv/mythplayer.cpp
Expand Up @@ -244,7 +244,6 @@ MythPlayer::MythPlayer(PlayerFlags flags)
endExitPrompt = gCoreContext->GetNumSetting("EndOfRecordingExitPrompt");
pip_default_loc = (PIPLocation)gCoreContext->GetNumSetting("PIPLocation", kPIPTopLeft);
tc_wrap[TC_AUDIO] = gCoreContext->GetNumSetting("AudioSyncOffset", 0);
allowForcedSubtitles = gCoreContext->GetNumSetting("AllowForcedSubtitles", 1);

// Get VBI page number
QString mypage = gCoreContext->GetSetting("VBIpageNr", "888");
Expand Down Expand Up @@ -1578,11 +1577,6 @@ void MythPlayer::SetAllowForcedSubtitles(bool allow)
tr("Forced Subtitles On") :
tr("Forced Subtitles Off"),
kOSDTimeout_Med);
if (old != allowForcedSubtitles)
{
gCoreContext->SaveSetting("AllowForcedSubtitles",
allowForcedSubtitles);
}
}

void MythPlayer::DoDisableForcedSubtitles(void)
Expand Down

0 comments on commit 0b7e902

Please sign in to comment.