From 39c003de8a374e43daeb9309cb8d3d2f8d104d46 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Mon, 26 Mar 2007 20:07:46 +0000 Subject: [PATCH] Fix for displaying radio EPG --- vepg.cc | 4 ++-- vepg.h | 2 +- vradiorec.cc | 11 ----------- vvideolive.cc | 2 +- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/vepg.cc b/vepg.cc index 85a30aa..06859ee 100644 --- a/vepg.cc +++ b/vepg.cc @@ -35,7 +35,7 @@ VEpg* VEpg::instance = NULL; -VEpg::VEpg(VVideoLive* v, UINT currentChannel) +VEpg::VEpg(VVideoLive* v, UINT currentChannel, ULONG streamType) { instance = this; @@ -74,7 +74,7 @@ VEpg::VEpg(VVideoLive* v, UINT currentChannel) viewman = ViewMan::getInstance(); videoLive = v; eventList = NULL; - chanList = VDR::getInstance()->getChannelsList(VDR::VIDEO); //TODO want to be able to display video and radio together + chanList = VDR::getInstance()->getChannelsList(streamType); //TODO want to be able to display video and radio together e = 0; for(UINT listIndex = 0; listIndex < gridRows; listIndex++) diff --git a/vepg.h b/vepg.h index a856b40..04aa1d6 100644 --- a/vepg.h +++ b/vepg.h @@ -47,7 +47,7 @@ class VVideoLive; class VEpg : public View, public TimerReceiver { public: - VEpg(VVideoLive* v, UINT currentChannel = 0); + VEpg(VVideoLive* v, UINT currentChannel, ULONG streamType); ~VEpg(); static VEpg* getInstance(); diff --git a/vradiorec.cc b/vradiorec.cc index f630f93..6c66303 100644 --- a/vradiorec.cc +++ b/vradiorec.cc @@ -219,17 +219,6 @@ int VRadioRec::handleCommand(int command) { //player->test1(); - - /* - // for testing EPG in NTSC with a NTSC test video - Video::getInstance()->setMode(Video::QUARTER); - Video::getInstance()->setPosition(170, 5); - VEpg* vepg = new VEpg(NULL, 0); - vepg->draw(); - ViewMan::getInstance()->add(vepg); - ViewMan::getInstance()->updateView(vepg); - */ - return 2; } case Remote::GREEN: diff --git a/vvideolive.cc b/vvideolive.cc index aed1931..3261115 100644 --- a/vvideolive.cc +++ b/vvideolive.cc @@ -459,7 +459,7 @@ void VVideoLive::showEPG() video->setMode(Video::QUARTER); video->setPosition(170, 5); //TODO need to deal with 4:3 switching - VEpg* vepg = new VEpg(this, currentChannel); + VEpg* vepg = new VEpg(this, currentChannel, streamType); vepg->draw(); viewman->add(vepg); -- 2.39.5