From 02f6b9235aeedb8bfca67329bc397165c3476b4c Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Sat, 25 Nov 2006 15:28:22 +0000 Subject: [PATCH] Radio detection fix --- vvideorec.cc | 21 +++------------------ vvideorec.h | 1 - 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/vvideorec.cc b/vvideorec.cc index 9fde5dc..09beac4 100644 --- a/vvideorec.cc +++ b/vvideorec.cc @@ -28,11 +28,7 @@ VVideoRec::VVideoRec(Recording* rec) timers = Timers::getInstance(); vas = NULL; - isRadio = rec->recInfo->hasNoVideo(); - - Log::getInstance()->log("VVideoRec", Log::DEBUG, "Radio = %i", isRadio); - - player = new Player(Command::getInstance(), this, true, isRadio); + player = new Player(Command::getInstance(), this, true, false); player->init(); videoMode = video->getMode(); @@ -152,16 +148,8 @@ void VVideoRec::go(bool resume) if (lengthBytes) { player->setLengthBytes(lengthBytes); - if (!isRadio) - { - Log::getInstance()->log("VVideoRec", Log::DEBUG, "GO is setting length frames = %lu", lengthFrames); - player->setLengthFrames(lengthFrames); - } - else - { - Log::getInstance()->log("VVideoRec", Log::DEBUG, "GO is NOT setting length frames"); - } - player->setStartFrame(startFrameNum); // means bytes if radio (FIXME not done yet!) + player->setLengthFrames(lengthFrames); + player->setStartFrame(startFrameNum); player->play(); playing = true; doBar(0); @@ -240,14 +228,12 @@ int VVideoRec::handleCommand(int command) } case Remote::FORWARD: { - if (isRadio) return 2; player->fastForward(); doBar(0); return 2; } case Remote::REVERSE: { - if (isRadio) return 2; player->fastBackward(); doBar(0); return 2; @@ -272,7 +258,6 @@ int VVideoRec::handleCommand(int command) case Remote::FULL: case Remote::TV: { - if (isRadio) return 2; toggleChopSides(); return 2; } diff --git a/vvideorec.h b/vvideorec.h index b03a40f..3efb7c3 100644 --- a/vvideorec.h +++ b/vvideorec.h @@ -71,7 +71,6 @@ class VVideoRec : public View, public TimerReceiver void toggleChopSides(); bool playing; - bool isRadio; bool barShowing; bool barGenHold; -- 2.39.5