From c8f0c68cf66c57ccd0e2a1db026f8d772d172f35 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Thu, 6 Nov 2014 14:38:30 +0100 Subject: [PATCH] nhttpd controlapi: change for subchannel to subchannel zap --- src/nhttpd/tuxboxapi/coolstream/controlapi.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp index 9b2dd8171..2064ed501 100644 --- a/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp +++ b/src/nhttpd/tuxboxapi/coolstream/controlapi.cpp @@ -1673,10 +1673,8 @@ void CControlAPI::ZaptoCGI(CyhookHandler *hh) } else if (!hh->ParamList["subchannel"].empty()) { - t_channel_id current_channel = NeutrinoAPI->Zapit->getCurrentServiceID(); - CSectionsdClient::responseGetCurrentNextInfoChannelID currentNextInfo; - CEitManager::getInstance()->getCurrentNextServiceKey(current_channel, currentNextInfo); - if (currentNextInfo.flags & CSectionsdClient::epgflags::current_has_linkagedescriptors) + extern CRemoteControl * g_RemoteControl; + if (!g_RemoteControl->subChannels.empty()) { NeutrinoAPI->ZapToSubService(hh->ParamList["subchannel"].c_str()); hh->SendOk();