From cbbd3843275164a73f147f2c26316f22f0e9ff95 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 27 Dec 2017 00:49:34 +0100 Subject: [PATCH] movieplayer: remove CRCInput::RC_text handling Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ca873d64b8c6b2d6bc9eead3214cdea2d05d470b Author: vanhofen Date: 2017-12-27 (Wed, 27 Dec 2017) Origin message was: ------------------ - movieplayer: remove CRCInput::RC_text handling --- src/gui/movieplayer.cpp | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index c60a862e4..035fa1515 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -2005,41 +2005,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();