nhttpd controlapi: change for subchannel to subchannel zap

This commit is contained in:
Jacek Jendrzej
2014-11-06 14:38:30 +01:00
parent 95eab2a48d
commit c8f0c68cf6

View File

@@ -1673,10 +1673,8 @@ void CControlAPI::ZaptoCGI(CyhookHandler *hh)
} }
else if (!hh->ParamList["subchannel"].empty()) else if (!hh->ParamList["subchannel"].empty())
{ {
t_channel_id current_channel = NeutrinoAPI->Zapit->getCurrentServiceID(); extern CRemoteControl * g_RemoteControl;
CSectionsdClient::responseGetCurrentNextInfoChannelID currentNextInfo; if (!g_RemoteControl->subChannels.empty())
CEitManager::getInstance()->getCurrentNextServiceKey(current_channel, currentNextInfo);
if (currentNextInfo.flags & CSectionsdClient::epgflags::current_has_linkagedescriptors)
{ {
NeutrinoAPI->ZapToSubService(hh->ParamList["subchannel"].c_str()); NeutrinoAPI->ZapToSubService(hh->ParamList["subchannel"].c_str());
hh->SendOk(); hh->SendOk();