2007-09-15 17:38:38 +02:00
|
|
|
/*
|
|
|
|
* config.c: IPTV plugin for the Video Disk Recorder
|
|
|
|
*
|
|
|
|
* See the README file for copyright information and how to reach the author.
|
|
|
|
*
|
2007-10-07 22:08:44 +02:00
|
|
|
* $Id: config.c,v 1.14 2007/10/07 20:08:44 rahrenbe Exp $
|
2007-09-15 17:38:38 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
cIptvConfig IptvConfig;
|
|
|
|
|
|
|
|
cIptvConfig::cIptvConfig(void)
|
2007-09-28 18:44:59 +02:00
|
|
|
: readBufferTsCount(48),
|
|
|
|
tsBufferSize(2),
|
2007-09-30 23:38:31 +02:00
|
|
|
tsBufferPrefillRatio(0),
|
2007-10-07 22:08:44 +02:00
|
|
|
statsUnit(IPTV_STATS_UNIT_IN_KBYTES),
|
2007-09-30 23:38:31 +02:00
|
|
|
sectionFiltering(1),
|
2007-10-07 22:08:44 +02:00
|
|
|
sidScanning(1)
|
2007-09-15 17:38:38 +02:00
|
|
|
{
|
2007-10-06 02:02:50 +02:00
|
|
|
for (unsigned int i = 0; i < sizeof(disabledFilters); ++i)
|
|
|
|
disabledFilters[i] = -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
unsigned int cIptvConfig::GetDisabledFiltersCount(void)
|
|
|
|
{
|
|
|
|
unsigned int n = 0;
|
|
|
|
while ((disabledFilters[n] != -1) && (n < sizeof(disabledFilters)))
|
|
|
|
n++;
|
|
|
|
return n;
|
|
|
|
}
|
|
|
|
|
|
|
|
int cIptvConfig::GetDisabledFilters(unsigned int Index)
|
|
|
|
{
|
|
|
|
return (Index < sizeof(disabledFilters)) ? disabledFilters[Index] : -1;
|
|
|
|
}
|
|
|
|
|
|
|
|
void cIptvConfig::SetDisabledFilters(unsigned int Index, int Number)
|
|
|
|
{
|
|
|
|
if (Index < sizeof(disabledFilters))
|
|
|
|
disabledFilters[Index] = Number;
|
2007-09-15 17:38:38 +02:00
|
|
|
}
|