zapit/src/zapit.cpp: there is case when unlocking live playback can fail

due to all frontends busy and zap back to live channel not possible.
Send CZapitClient::EVT_ZAP_FAILED to notify neutrino
This commit is contained in:
[CST] Focus
2014-02-04 17:38:31 +04:00
parent b992366b1c
commit e68b207154

View File

@@ -1632,7 +1632,8 @@ bool CZapit::ParseCommand(CBasicMessage::Header &rmsg, int connfd)
SendPMT(); SendPMT();
} else { } else {
live_fe->setTsidOnid(0); live_fe->setTsidOnid(0);
ZapIt(lock_channel_id); if (!ZapIt(lock_channel_id))
SendEvent(CZapitClient::EVT_ZAP_FAILED, &lock_channel_id, sizeof(lock_channel_id));
lock_channel_id = 0; lock_channel_id = 0;
} }