- movieplayer: remove CRCInput::RC_text handling

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2017-12-27 00:49:34 +01:00
committed by Thilo Graf
parent b4b9ea5842
commit 30e4c575c3

View File

@@ -2007,41 +2007,6 @@ void CMoviePlayerGui::PlayFileLoop(void)
update_lcd = true;
#if 0
clearSubtitle();
#endif
#if HAVE_SPARK_HARDWARE
} else if (msg == CRCInput::RC_text) {
int pid = playback->GetFirstTeletextPid();
if (pid > -1) {
playback->SetTeletextPid(0);
StopSubtitles(true);
if (g_settings.cacheTXT)
tuxtxt_stop();
playback->SetTeletextPid(pid);
tuxtx_stop_subtitle();
tuxtx_main(pid, 0, 2, true);
tuxtxt_stop();
playback->SetTeletextPid(0);
if (currentttxsub != "") {
CSubtitleChangeExec SubtitleChanger(playback);
SubtitleChanger.exec(NULL, currentttxsub);
}
StartSubtitles(true);
frameBuffer->paintBackground();
//purge input queue
do
g_RCInput->getMsg(&msg, &data, 1);
while (msg != CRCInput::RC_timeout);
} else if (g_RemoteControl->current_PIDs.PIDs.vtxtpid) {
StopSubtitles(true);
// The playback stream doesn't come with teletext.
tuxtx_main(g_RemoteControl->current_PIDs.PIDs.vtxtpid, 0, 2);
frameBuffer->paintBackground();
StartSubtitles(true);
//purge input queue
do
g_RCInput->getMsg(&msg, &data, 1);
while (msg != CRCInput::RC_timeout);
}
#endif
} else if (timeshift != TSHIFT_MODE_OFF && (msg == CRCInput::RC_text || msg == CRCInput::RC_epg || msg == NeutrinoMessages::SHOW_EPG)) {
bool restore = FileTimeOSD->IsVisible();