mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
neutrino: add support for CST new simple frontpanel with LED segment display. (c) focus and adjusted by me.
Conflicts:
src/daemonc/remotecontrol.cpp
src/gui/channellist.cpp
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5f3872b5dd
Author: [CST] Bas <bas@coolstreamtech.com>
Date: 2014-09-26 (Fri, 26 Sep 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -95,6 +95,7 @@ CRemoteControl::CRemoteControl()
|
||||
current_channel_id = CZapit::getInstance()->GetCurrentChannelID();;
|
||||
current_sub_channel_id = 0;
|
||||
current_channel_name = "";
|
||||
current_channel_num = -1;
|
||||
|
||||
zap_completion_timeout = 0;
|
||||
|
||||
@@ -151,10 +152,11 @@ int CRemoteControl::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data
|
||||
is_video_started = true;
|
||||
if (channel) {
|
||||
current_channel_name = channel->getName();
|
||||
current_channel_num = channel->number;
|
||||
if (channel->Locked() != g_settings.parentallock_defaultlocked)
|
||||
stopvideo();
|
||||
}
|
||||
CVFD::getInstance()->showServicename(current_channel_name); // UTF-8
|
||||
CVFD::getInstance()->showServicename(current_channel_name, current_channel_num); // UTF-8
|
||||
current_channel_id = new_id;
|
||||
|
||||
current_EPGid = 0;
|
||||
@@ -291,7 +293,7 @@ int CRemoteControl::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data
|
||||
|
||||
if ((*(t_channel_id *)data) == ((msg == NeutrinoMessages::EVT_ZAP_COMPLETE) ? current_channel_id : current_sub_channel_id))
|
||||
{
|
||||
CVFD::getInstance()->showServicename(current_channel_name); // UTF-8
|
||||
CVFD::getInstance()->showServicename(current_channel_name, current_channel_num); // UTF-8
|
||||
g_Zapit->getPIDS( current_PIDs );
|
||||
//tuxtxt
|
||||
#if 1
|
||||
@@ -320,7 +322,7 @@ int CRemoteControl::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data
|
||||
if ((*(t_channel_id *)data) == current_channel_id)
|
||||
{
|
||||
needs_nvods = true;
|
||||
CVFD::getInstance()->showServicename(std::string("[") + current_channel_name + ']'); // UTF-8
|
||||
CVFD::getInstance()->showServicename(std::string("[") + current_channel_name + ']', current_channel_num); // UTF-8
|
||||
if ( current_EPGid != 0)
|
||||
{
|
||||
getNVODs();
|
||||
@@ -670,10 +672,11 @@ const std::string & CRemoteControl::subChannelDown(void)
|
||||
}
|
||||
}
|
||||
|
||||
void CRemoteControl::zapTo_ChannelID(const t_channel_id channel_id, const std::string & channame, const bool start_video) // UTF-8
|
||||
void CRemoteControl::zapTo_ChannelID(const t_channel_id channel_id, const std::string & channame, int channum, const bool start_video) // UTF-8
|
||||
{
|
||||
current_channel_id = channel_id;
|
||||
current_channel_name = channame;
|
||||
current_channel_num = channum;
|
||||
//printf("zapTo_ChannelID: start_video: %d\n", start_video);
|
||||
if (start_video)
|
||||
startvideo();
|
||||
|
Reference in New Issue
Block a user