From 86a95b039fb6c4eea88d06ae730063a52ac0f78a Mon Sep 17 00:00:00 2001 From: micha-bbg Date: Mon, 26 Nov 2012 23:39:43 +0100 Subject: [PATCH] * Moviebrowser: Fix delete files when recording in progress. --- src/gui/moviebrowser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/moviebrowser.cpp b/src/gui/moviebrowser.cpp index bb3cf9281..f69e7f801 100644 --- a/src/gui/moviebrowser.cpp +++ b/src/gui/moviebrowser.cpp @@ -1743,7 +1743,11 @@ bool CMovieBrowser::onButtonPressMainFrame(neutrino_msg_t msg) CMessageBox::mbrNo, CMessageBox::mbYes | CMessageBox::mbNo, NULL, 450, 30, false) == CMessageBox::mbrNo) onDelete = false; 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; } }