From cffc44275d639e4c93a5289ba21331e6b5a91392 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 28 Jan 2014 16:16:35 +0400 Subject: [PATCH] gui/cam_menu.cpp: handle CA_MESSAGE_MSG_CHANNEL_CHANGE msg Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/828f9e58564fa62e273ea053b22860306e581ddf Author: [CST] Focus Date: 2014-01-28 (Tue, 28 Jan 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/cam_menu.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/gui/cam_menu.cpp b/src/gui/cam_menu.cpp index d0dc13e7f..94224436c 100644 --- a/src/gui/cam_menu.cpp +++ b/src/gui/cam_menu.cpp @@ -435,6 +435,19 @@ int CCAMMenuHandler::handleCamMsg (const neutrino_msg_t msg, neutrino_msg_data_t } else if(MsgId == CA_MESSAGE_MSG_MMI_TEXT) { printf("CCAMMenuHandler::handleCamMsg: text\n"); + } + else if(MsgId == CA_MESSAGE_MSG_CHANNEL_CHANGE) { + if (!(Msg.Flags & CA_MESSAGE_HAS_PARAM1_LONG)) + return -1; + + t_channel_id chid = Msg.Msg.ParamLong[0]; + printf("CCAMMenuHandler::handleCamMsg: CA_MESSAGE_MSG_CHANNEL_CHANGE: %" PRIx64 "\n", chid); + CZapitChannel * channel = CServiceManager::getInstance()->FindChannel48(chid); + if (!channel) { + printf("CCAMMenuHandler::handleCamMsg: channel %" PRIx64 "not found\n", chid); + return -1; + } + CNeutrinoApp::getInstance()->zapTo(channel->getChannelID()); } else ret = -1; //printf("CCAMMenuHandler::handleCamMsg: return %d\n", ret);