* Moviebrowser: Fix delete files when recording in progress.

This commit is contained in:
micha-bbg
2012-11-26 23:39:43 +01:00
parent fefa483469
commit 86a95b039f

View File

@@ -1743,7 +1743,11 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg)
CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, false) == CMessageBox::mbrNo) CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, false) == CMessageBox::mbrNo)
onDelete = false; onDelete = false;
else { else {
g_Timerd->removeTimerEvent(inst->GetRecordingId()); CTimerd::RecordingStopInfo recinfo;
recinfo.channel_id = inst->GetChannelId();
recinfo.eventID = inst->GetRecordingId();
CRecordManager::getInstance()->Stop(&recinfo);
g_Timerd->removeTimerEvent(recinfo.eventID);
skipAsk = true; skipAsk = true;
} }
} }