* Moviebrowser: Ask if the file of a running recording to be deleted.

This commit is contained in:
micha-bbg
2012-11-26 11:05:20 +01:00
parent 69ab1968b4
commit fefa483469
8 changed files with 36 additions and 26 deletions

View File

@@ -1650,18 +1650,18 @@ void CRecordManager::RestoreNeutrino(void)
g_Sectionsd->setPauseScanning(false);
}
bool CRecordManager::IsFileRecord(std::string file)
CRecordInstance* CRecordManager::getRecordInstance(std::string file)
{
mutex.lock();
for(recmap_iterator_t it = recmap.begin(); it != recmap.end(); it++) {
CRecordInstance * inst = it->second;
if ((((std::string)inst->GetFileName()) + ".ts") == file) {
mutex.unlock();
return true;
return inst;
}
}
mutex.unlock();
return false;
return NULL;
}
#if 0