summaryrefslogtreecommitdiff
path: root/server/setup.c
diff options
context:
space:
mode:
authorFrank Schmirler <vdr@schmirler.de>2014-05-18 15:24:24 +0200
committerFrank Schmirler <vdr@schmirler.de>2014-05-18 15:24:24 +0200
commit2cdf160648b9666bb870e5b3157619920476d76d (patch)
treecdba11275e26dac365bde6b72674151ea178ed90 /server/setup.c
parent54440cb08027f88c2913bb6b417de89423c5531c (diff)
downloadvdr-plugin-streamdev-2cdf160648b9666bb870e5b3157619920476d76d.tar.gz
vdr-plugin-streamdev-2cdf160648b9666bb870e5b3157619920476d76d.tar.bz2
Configurable buffer for live TV
Diffstat (limited to 'server/setup.c')
-rw-r--r--server/setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/setup.c b/server/setup.c
index b3d23d4..37d1b45 100644
--- a/server/setup.c
+++ b/server/setup.c
@@ -13,6 +13,7 @@ cStreamdevServerSetup::cStreamdevServerSetup(void) {
HideMenuEntry = false;
MaxClients = 5;
StartSuspended = ssAuto;
+ LiveBufferMs = 0;
StartVTPServer = true;
VTPServerPort = 2004;
VTPPriority = 0;
@@ -35,6 +36,7 @@ bool cStreamdevServerSetup::SetupParse(const char *Name, const char *Value) {
if (strcmp(Name, "HideMenuEntry") == 0) HideMenuEntry = atoi(Value);
else if (strcmp(Name, "MaxClients") == 0) MaxClients = atoi(Value);
else if (strcmp(Name, "StartSuspended") == 0) StartSuspended = atoi(Value);
+ else if (strcmp(Name, "LiveBufferMs") == 0) LiveBufferMs = atoi(Value);
else if (strcmp(Name, "StartServer") == 0) StartVTPServer = atoi(Value);
else if (strcmp(Name, "ServerPort") == 0) VTPServerPort = atoi(Value);
else if (strcmp(Name, "VTPPriority") == 0) VTPPriority = atoi(Value);
@@ -86,6 +88,7 @@ void cStreamdevServerMenuSetupPage::Set(void) {
Add(new cMenuEditBoolItem(tr("Hide Mainmenu Entry"), &m_NewSetup.HideMenuEntry));
Add(new cMenuEditStraItem(tr("Start with Live TV suspended"), &m_NewSetup.StartSuspended, ss_Count, StartSuspendedItems));
Add(new cMenuEditIntItem (tr("Maximum Number of Clients"), &m_NewSetup.MaxClients, 0, 100));
+ Add(new cMenuEditIntItem (tr("Live TV buffer delay (ms)"), &m_NewSetup.LiveBufferMs, 0, 1500));
AddCategory (tr("VDR-to-VDR Server"));
@@ -142,6 +145,7 @@ void cStreamdevServerMenuSetupPage::Store(void) {
SetupStore("HideMenuEntry", m_NewSetup.HideMenuEntry);
SetupStore("MaxClients", m_NewSetup.MaxClients);
SetupStore("StartSuspended", m_NewSetup.StartSuspended);
+ SetupStore("LiveBufferMs", m_NewSetup.LiveBufferMs);
SetupStore("StartServer", m_NewSetup.StartVTPServer);
SetupStore("ServerPort", m_NewSetup.VTPServerPort);
SetupStore("VTPBindIP", m_NewSetup.VTPBindIP);