mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +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;
|
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
|
#if 0
|
||||||
/* should return true, if recordingstatus changed in this function ? */
|
/* should return true, if recordingstatus changed in this function ? */
|
||||||
bool CRecordManager::doGuiRecord()
|
bool CRecordManager::doGuiRecord()
|
||||||
|
@@ -226,6 +226,7 @@ class CRecordManager : public CMenuTarget /*, public CChangeObserver*/
|
|||||||
void StartTimeshift();
|
void StartTimeshift();
|
||||||
int GetRecordMode(const t_channel_id channel_id=0);
|
int GetRecordMode(const t_channel_id channel_id=0);
|
||||||
CRecordInstance* getRecordInstance(std::string file);
|
CRecordInstance* getRecordInstance(std::string file);
|
||||||
|
CRecordInstance* getUseCI();
|
||||||
// old code
|
// old code
|
||||||
#if 0
|
#if 0
|
||||||
bool MountDirectory(const char *recordingDir);
|
bool MountDirectory(const char *recordingDir);
|
||||||
|
@@ -2430,6 +2430,9 @@ bool CChannelList::SameTP(CZapitChannel * channel)
|
|||||||
return false; // No other CI channel
|
return false; // No other CI channel
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
if(channel->bUseCI && CRecordManager::getInstance()->getUseCI())
|
||||||
|
return false;
|
||||||
|
|
||||||
iscurrent = CFEManager::getInstance()->canTune(channel);
|
iscurrent = CFEManager::getInstance()->canTune(channel);
|
||||||
}
|
}
|
||||||
return iscurrent;
|
return iscurrent;
|
||||||
|
Reference in New Issue
Block a user