zapit/src/capmt.cpp: fix crash on channel stop, if recording

This commit is contained in:
[CST] Focus
2012-05-06 15:51:14 +04:00
parent c5c3b0109a
commit f37540ccf7

View File

@@ -253,6 +253,7 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
uint8_t list = CCam::CAPMT_FIRST;
for (it = channel_map.begin(); it != channel_map.end(); /*++it*/)
{
cam = it->second;
channel = CServiceManager::getInstance()->FindChannel(it->first);
++it;
if(!channel)