mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
channellist: set CI channel inactive if recording with CI
Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
@@ -1796,6 +1796,21 @@ CRecordInstance* CRecordManager::getRecordInstance(std::string file)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
CRecordInstance* CRecordManager::getUseCI()
|
||||
{
|
||||
mutex.lock();
|
||||
for(recmap_iterator_t it = recmap.begin(); it != recmap.end(); it++) {
|
||||
CRecordInstance * inst = it->second;
|
||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(inst->GetChannelId());
|
||||
if (channel->bUseCI) {
|
||||
mutex.unlock();
|
||||
return inst;
|
||||
}
|
||||
}
|
||||
mutex.unlock();
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if 0
|
||||
/* should return true, if recordingstatus changed in this function ? */
|
||||
bool CRecordManager::doGuiRecord()
|
||||
|
Reference in New Issue
Block a user