try to fix loop rezap with lua script

Origin commit data
------------------
Commit: 4fcea5bfd5
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2017-02-01 (Wed, 01 Feb 2017)
This commit is contained in:
Jacek Jendrzej
2017-02-01 20:38:04 +01:00
parent 23811afa46
commit b0fb6eeeb7

View File

@@ -515,6 +515,11 @@ bool CZapit::ZapIt(const t_channel_id channel_id, bool forupdate, bool startplay
if (IS_WEBTV(newchannel->getChannelID()) && !newchannel->getUrl().empty()) {
dvbsub_stop();
if (current_channel->getChannelID() == newchannel->getChannelID() && !newchannel->getScriptName().empty()){
INFO("[zapit] stop rezap to channel %s id %" PRIx64 ")", newchannel->getName().c_str(), newchannel->getChannelID());
return true;
}
if (!IS_WEBTV(live_channel_id))
CCamManager::getInstance()->Stop(live_channel_id, CCamManager::PLAY);