mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-03 02:41:12 +02:00
record.cpp: avoid segfault in CRecordManager::getUseCI()
Origin commit data
------------------
Commit: 79c12ed7ad
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-11-16 (Wed, 16 Nov 2016)
Origin message was:
------------------
- record.cpp: avoid segfault in CRecordManager::getUseCI()
This commit is contained in:
@@ -1820,10 +1820,14 @@ CRecordInstance* CRecordManager::getUseCI()
|
|||||||
mutex.lock();
|
mutex.lock();
|
||||||
for(recmap_iterator_t it = recmap.begin(); it != recmap.end(); it++) {
|
for(recmap_iterator_t it = recmap.begin(); it != recmap.end(); it++) {
|
||||||
CRecordInstance * inst = it->second;
|
CRecordInstance * inst = it->second;
|
||||||
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(inst->GetChannelId());
|
if (inst)
|
||||||
if (channel->bUseCI) {
|
{
|
||||||
mutex.unlock();
|
CZapitChannel * channel = CServiceManager::getInstance()->FindChannel(inst->GetChannelId());
|
||||||
return inst;
|
if (channel && channel->bUseCI)
|
||||||
|
{
|
||||||
|
mutex.unlock();
|
||||||
|
return inst;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
|
Reference in New Issue
Block a user