예제 #1
0
파일: tuxtxtapp.cpp 프로젝트: ambrosa/test
void eTuxtxtApp::startCaching( int tpid, int tdemux)
{
	pid = tpid;
	demux = tdemux;
	if (enableTtCaching)
		tuxtxt_start(pid, demux);
}
예제 #2
0
//-------------------------------------------------------------------------
void CVCRControl::CFileAndServerDevice::RestoreNeutrino(void)
{
	if (!g_Zapit->isPlayBackActive() && 
	    CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_standby)
		g_Zapit->startPlayBack();
	g_Zapit->setRecordMode( false );
	if (StopSectionsd) {
#ifdef RESTART_SECTIONSD_INSTEAD_OF_STOP
		g_Sectionsd->RegisterNeutrino();
		g_Sectionsd->setServiceChanged(g_RemoteControl->current_channel_id, false);
#endif
		g_Sectionsd->setPauseScanning(false);
	}
	// alten mode wieder herstellen (ausser wen zwischenzeitlich auf oder aus sb geschalten wurde)
	if(CNeutrinoApp::getInstance()->getMode() != last_mode && 
	   CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_standby &&
	   last_mode != NeutrinoMessages::mode_standby)
		g_RCInput->postMsg( NeutrinoMessages::CHANGEMODE , last_mode);

/*	if(last_mode == NeutrinoMessages::mode_standby &&
		CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_standby )
	{
		//Wenn vorher und jetzt standby, dann die zapit wieder auf sb schalten
		g_Zapit->setStandby(true);
	}*/
#ifndef TUXTXT_CFG_STANDALONE
	if(g_settings.tuxtxt_cache)
	{
		int vtpid=g_RemoteControl->current_PIDs.PIDs.vtxtpid;
		tuxtxt_init();
		if(vtpid)
			tuxtxt_start(vtpid);
	}
#endif
}
예제 #3
0
bool CMiscMenue::changeNotify(const neutrino_locale_t OptionName, void *)
{
	if (ARE_LOCALES_EQUAL(OptionName, LOCALE_MISCSETTINGS_SHUTDOWN_COUNT))
	{
		printf("[neutrino] shutdown counter changed to %d minutes\n", atoi(g_settings.shutdown_count));
	}
	else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_MISCSETTINGS_EPG_CACHE) ||
	         ARE_LOCALES_EQUAL(OptionName, LOCALE_MISCSETTINGS_EPG_EXTENDEDCACHE) ||
	         ARE_LOCALES_EQUAL(OptionName, LOCALE_MISCSETTINGS_EPG_OLD_EVENTS) ||
	         ARE_LOCALES_EQUAL(OptionName, LOCALE_MISCSETTINGS_EPG_MAX_EVENTS))
	{
		CNeutrinoApp::getInstance()->SendSectionsdConfig();
	}
#ifndef TUXTXT_CFG_STANDALONE
	else if (ARE_LOCALES_EQUAL(OptionName, LOCALE_MISCSETTINGS_TUXTXT_CACHE))
	{
		int vtpid = g_RemoteControl->current_PIDs.PIDs.vtxtpid;

		if (g_settings.tuxtxt_cache)
		{
			tuxtxt_init();
			if (vtpid)
				tuxtxt_start(vtpid);
		}
		else
		{
			tuxtxt_stop();
			tuxtxt_close();
		}
	}
#endif
	return false;
}
예제 #4
0
파일: setup_extra.cpp 프로젝트: UkCvs/ukcvs
void eExpertSetup::tuxtxtCachingChanged(bool b)
{
	if ( b )
	{
		if (Decoder::current.tpid != -1)
			tuxtxt_stop();
		tuxtxt_close();
	}
	else
	{
		tuxtxt_init();
		if (Decoder::current.tpid != -1)
			tuxtxt_start(Decoder::current.tpid);
	}
}
예제 #5
0
bool CTuxtxtCacheNotifier::changeNotify(const neutrino_locale_t, void *)
{
	int vtpid=g_RemoteControl->current_PIDs.PIDs.vtxtpid;

	if (g_settings.tuxtxt_cache)
	{
		tuxtxt_init();
		if (vtpid)
			tuxtxt_start(vtpid);
	}
	else
	{
		tuxtxt_stop();
		tuxtxt_close();
	}

	return true;
}
예제 #6
0
//-------------------------------------------------------------------------
void CVCRControl::CFileAndServerDevice::RestoreNeutrino(void)
{
	if (!g_Zapit->isPlayBackActive() && 
	    CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_standby)
		g_Zapit->startPlayBack();
	g_Zapit->setRecordMode( false );

	// sectionsd starten, wenn er gestoppt oder neu gestartet wurde
	if (StopSectionsd == CNeutrinoApp::SECTIONSD_STOP)
	{
		g_Sectionsd->setPauseScanning(false);
	}
	else if (StopSectionsd == CNeutrinoApp::SECTIONSD_RESTART)
	{
		g_Sectionsd->setPauseScanning(false);
		g_Sectionsd->setServiceChanged(g_RemoteControl->current_channel_id, false);
	}

	// alten mode wiederherstellen (ausser wenn zwischenzeitlich auf oder aus standby oder SCART geschaltet wurde)
	if(CNeutrinoApp::getInstance()->getMode() != last_mode && 
	   CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_scart &&
	   last_mode != NeutrinoMessages::mode_scart &&
	   CNeutrinoApp::getInstance()->getMode() != NeutrinoMessages::mode_standby &&
	   last_mode != NeutrinoMessages::mode_standby)
		g_RCInput->postMsg( NeutrinoMessages::CHANGEMODE , last_mode);

#ifndef TUXTXT_CFG_STANDALONE
	if(g_settings.tuxtxt_cache)
	{
		int vtpid=g_RemoteControl->current_PIDs.PIDs.vtxtpid;
		tuxtxt_init();
		if(vtpid)
			tuxtxt_start(vtpid);
	}
#endif
#ifdef ENABLE_RADIOTEXT
	if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_radio &&
	    g_settings.radiotext_enable && g_Radiotext == NULL)
	{
		g_Radiotext = new CRadioText;
		g_Radiotext->setPid(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].pid);
	}
#endif
}