* Moviebrowser: Deleting recordings

- Deleting of active recordings will be disabled.

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@2112 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
micha-bbg
2012-02-17 23:31:36 +00:00
parent aa969f1fbe
commit c85c353344
4 changed files with 37 additions and 15 deletions

View File

@@ -1636,6 +1636,20 @@ bool CRecordManager::MountDirectory(const char *recordingDir)
return ret;
}
bool CRecordManager::IsFileRecord(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;
}
}
mutex.unlock();
return false;
}
#if 0 // not used, saved in case we needed it
extern bool autoshift_delete;
bool CRecordManager::LinkTimeshift()