gui/scan.cpp: add zap to current channel_id after scan

This commit is contained in:
[CST] Focus
2013-02-28 15:53:07 +04:00
parent 9dd839cc09
commit f567d3b85d

View File

@@ -200,6 +200,9 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
CRecordManager::getInstance()->StopAutoRecord(); CRecordManager::getInstance()->StopAutoRecord();
g_Zapit->stopPlayBack(); g_Zapit->stopPlayBack();
#ifdef BOXMODEL_APOLLO
CZapit::getInstance()->StopPip();
#endif
frameBuffer->paintBackground(); frameBuffer->paintBackground();
videoDecoder->ShowPicture(DATADIR "/neutrino/icons/scan.jpg"); videoDecoder->ShowPicture(DATADIR "/neutrino/icons/scan.jpg");
@@ -342,6 +345,8 @@ int CScanTs::exec(CMenuTarget* /*parent*/, const std::string & actionKey)
videoDecoder->StopPicture(); videoDecoder->StopPicture();
frameBuffer->Clear(); frameBuffer->Clear();
g_Sectionsd->setPauseScanning(false); g_Sectionsd->setPauseScanning(false);
CNeutrinoApp::getInstance()->channelList->setSelected(0xfffffff);
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(CZapit::getInstance()->GetCurrentChannelID());
CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO); CVFD::getInstance()->setMode(CVFD::MODE_TVRADIO);
return menu_return::RETURN_REPAINT; return menu_return::RETURN_REPAINT;