eitd: add and move viasat to extra switch

This commit is contained in:
Jacek Jendrzej
2015-08-09 17:54:31 +02:00
parent b9f4f447ee
commit 06ab9d186b
2 changed files with 29 additions and 5 deletions

View File

@@ -132,8 +132,11 @@ OpenThreads::Mutex filter_mutex;
static CTimeThread threadTIME;
static CEitThread threadEIT;
static CCNThread threadCN;
#ifdef ENABLE_VIASATEPG
// ViaSAT uses pid 0x39 instead of 0x12
static CEitThread threadVSEIT("viasatThread", 0x39);
#endif
#ifdef ENABLE_FREESATEPG
static CFreeSatThread threadFSEIT;
@@ -838,7 +841,10 @@ static void wakeupAll()
{
threadCN.change(0);
threadEIT.change(0);
#ifdef ENABLE_VIASATEPG
threadVSEIT.change(0);
#endif
#ifdef ENABLE_FREESATEPG
threadFSEIT.change(0);
#endif
@@ -961,7 +967,9 @@ static void commandserviceChanged(int connfd, char *data, const unsigned dataLen
threadCN.setCurrentService(messaging_current_servicekey);
threadEIT.setDemux(cmd->dnum);
threadEIT.setCurrentService(uniqueServiceKey /*messaging_current_servicekey*/);
#ifdef ENABLE_VIASATEPG
threadVSEIT.setCurrentService(messaging_current_servicekey);
#endif
#ifdef ENABLE_FREESATEPG
threadFSEIT.setCurrentService(messaging_current_servicekey);
#endif
@@ -2225,7 +2233,9 @@ printf("SIevent size: %d\n", (int)sizeof(SIevent));
threadTIME.Start();
threadEIT.Start();
threadCN.Start();
#ifdef ENABLE_VIASATEPG
threadVSEIT.Start();
#endif
#ifdef ENABLE_FREESATEPG
threadFSEIT.Start();
@@ -2264,7 +2274,9 @@ printf("SIevent size: %d\n", (int)sizeof(SIevent));
threadEIT.StopRun();
threadCN.StopRun();
threadTIME.StopRun();
#ifdef ENABLE_VIASATEPG
threadVSEIT.StopRun();
#endif
#ifdef ENABLE_SDT
threadSDT.StopRun();
#endif
@@ -2288,9 +2300,10 @@ printf("SIevent size: %d\n", (int)sizeof(SIevent));
xprintf("join CN\n");
threadCN.Stop();
#ifdef ENABLE_VIASATEPG
xprintf("join VSEIT\n");
threadVSEIT.Stop();
#endif
#ifdef ENABLE_SDT
xprintf("join SDT\n");