don't execute ci "hack", if calling from movieplayer

Origin commit data
------------------
Branch: ni/coolstream
Commit: a2193c9e44
Author: FlatTV <FlatTV@gmx.de>
Date: 2016-10-25 (Tue, 25 Oct 2016)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
FlatTV
2016-10-25 18:05:02 +02:00
parent 54c9128b89
commit 0fd68eb6a7
5 changed files with 25 additions and 8 deletions

View File

@@ -224,6 +224,9 @@ void CMoviePlayerGui::cutNeutrino()
if (isUPNP)
return;
//NI
CZapit::getInstance()->setMoviePlayer(true);// let CCamManager::SetMode know, the call is from MoviePlayer
g_Zapit->lockPlayBack();
//NI if (!isWebTV)
//NI g_Sectionsd->setPauseScanning(true);

View File

@@ -94,8 +94,10 @@ class CCamManager
static CCamManager * manager;
bool SetMode(t_channel_id id, enum runmode mode, bool enable, bool force_update = false);
void StopCam(t_channel_id id, CCam *cam);
bool useCI; //NI
unsigned int rmode; //NI
//NI
bool mp;
bool useCI;
unsigned int rmode;
enum ci_aktive {
CI_OFF,
CI_ON,
@@ -111,8 +113,10 @@ class CCamManager
void SetCITuner(int tuner);
int GetCITuner(void) { return tunerno; };
void EnableChannelFilter(bool enable) { filter_channels = enable; };
bool getUseCI() { return useCI; }; //NI
bool getChannelFilter() { return filter_channels; }; //NI
//NI
bool getUseCI() { return useCI; };
bool getChannelFilter() { return filter_channels; };
void enableMoviePlayer(bool enable) { mp = enable; };
};
#endif /* __capmt_h__ */

View File

@@ -275,5 +275,6 @@ class CZapit : public OpenThreads::Thread
std::list<std::string> *GetWebTVXML(void) { return webtv_xml; }
//NI
bool getUseChannelFilter();
void setMoviePlayer(bool enable);
};
#endif /* __zapit_h__ */

View File

@@ -172,8 +172,10 @@ CCamManager::CCamManager()
channel_map.clear();
tunerno = -1;
filter_channels = false;
useCI = false; //NI
rmode = CI_OFF; //NI
//NI
useCI = false;
rmode = CI_OFF;
mp = false;
}
CCamManager::~CCamManager()
@@ -283,11 +285,13 @@ bool CCamManager::SetMode(t_channel_id channel_id, enum runmode mode, bool start
CZapitChannel * chan = CServiceManager::getInstance()->GetCurrentChannel();
INFO(" ##NI: GetCurrentChannel (%s)\n",chan->getName().c_str());
//NI - this is a hack for rezaping to the recording channel
if((!mode || (mode && !chan->scrambled)) && (!start && rmode==CI_ON)){
//NI - this is a hack for rezaping to the recording channe
//if commig from movieplayer, disable hack
if(!mp && ( (!mode || (mode && !chan->scrambled)) && (!start && rmode==CI_ON)) ){
INFO(" ##NI: HACK: disabling TS\n");
cCA::GetInstance()->SetTS(CA_DVBCI_TS_INPUT_DISABLED);
}
mp = false;
#endif
}

View File

@@ -2474,6 +2474,11 @@ bool CZapit::getUseChannelFilter()
{
return CCamManager::getInstance()->getChannelFilter();
}
//NI
void CZapit::setMoviePlayer(bool enable)
{
CCamManager::getInstance()->enableMoviePlayer(enable);
}
void CZapit::run()
{