int VRecordingList::doPlay(bool resume)
{
Recording* toPlay = getCurrentOptionRecording();
+
if (toPlay)
{
- toPlay->loadRecInfo(); // check if still need this
toPlay->loadMarks();
bool ish264;
bool isRadio = toPlay->isRadio(ish264);
}
else
{
+ toPlay->loadRecInfo();
+
+ if (toPlay->recInfo == NULL)
+ {
+ VInfo* vi = new VInfo();
+ vi->setSize(360, 200);
+ vi->createBuffer();
+ if (Video::getInstance()->getFormat() == Video::PAL)
+ vi->setPosition(190, 170);
+ else
+ vi->setPosition(180, 120);
+ vi->setOneLiner(tr("Error playing recording"));
+ vi->setExitable();
+ vi->setBorderOn(1);
+ vi->setTitleBarColour(DrawStyle::DANGER);
+ vi->okButton();
+ vi->draw();
+ boxstack->add(vi);
+ boxstack->update(vi);
+ return 0;
+ }
+
VVideoRec* vidrec = new VVideoRec(toPlay, ish264);
vidrec->draw();
boxstack->add(vidrec);
Command::getInstance()->postMessageNoLock(m);
VInfo* vi = new VInfo();
- vi->setSize(400, 150);
+ vi->setSize(360, 200);
vi->createBuffer();
- if (video->getFormat() == Video::PAL)
- vi->setPosition(170, 200);
+ if (Video::getInstance()->getFormat() == Video::PAL)
+ vi->setPosition(190, 170);
else
- vi->setPosition(160, 150);
+ vi->setPosition(180, 120);
+ vi->setOneLiner(tr("Error playing recording"));
vi->setExitable();
vi->setBorderOn(1);
- vi->setTitleBarOn(0);
- vi->setOneLiner(tr("Error playing recording"));
+ vi->setTitleBarColour(DrawStyle::DANGER);
+ vi->okButton();
vi->draw();
m = new Message();