diff options
author | Frank Schmirler <vdr@schmirler.de> | 2012-04-21 22:28:58 +0200 |
---|---|---|
committer | Frank Schmirler <vdr@schmirler.de> | 2012-04-21 22:28:58 +0200 |
commit | 2e8aefd2fe424a2e5a70fc8abc7eb5187bc8dc4d (patch) | |
tree | c494e4b822fa9ed0bedb7cc3a8b8f29cff4654e3 /client/setup.c | |
parent | a1797719de296b381a18ae889294b00dd5850667 (diff) | |
download | vdr-plugin-streamdev-2e8aefd2fe424a2e5a70fc8abc7eb5187bc8dc4d.tar.gz vdr-plugin-streamdev-2e8aefd2fe424a2e5a70fc8abc7eb5187bc8dc4d.tar.bz2 |
Added streamdev-client support for upcoming streamdev-server versions
with purely priority driven precedence.
Diffstat (limited to 'client/setup.c')
-rw-r--r-- | client/setup.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/client/setup.c b/client/setup.c index dbb2dcc..0fc9e9f 100644 --- a/client/setup.c +++ b/client/setup.c @@ -7,6 +7,10 @@ #include "client/setup.h" #include "client/device.h" +#ifndef MINPRIORITY +#define MINPRIORITY -MAXPRIORITY +#endif + cStreamdevClientSetup StreamdevClientSetup; cStreamdevClientSetup::cStreamdevClientSetup(void) { @@ -16,7 +20,7 @@ cStreamdevClientSetup::cStreamdevClientSetup(void) { StreamFilters = false; HideMenuEntry = false; LivePriority = 0; - MinPriority = -MAXPRIORITY; + MinPriority = MINPRIORITY; MaxPriority = MAXPRIORITY; #if APIVERSNUM >= 10700 NumProvidedSystems = 1; @@ -55,9 +59,9 @@ cStreamdevClientMenuSetupPage::cStreamdevClientMenuSetupPage(void) { Add(new cMenuEditIntItem (tr("Remote Port"), &m_NewSetup.RemotePort, 0, 65535)); Add(new cMenuEditIntItem (tr("Timeout (s)"), &m_NewSetup.Timeout, 1, 15)); Add(new cMenuEditBoolItem(tr("Filter Streaming"), &m_NewSetup.StreamFilters)); - Add(new cMenuEditIntItem (tr("Live TV Priority"), &m_NewSetup.LivePriority, 0, MAXPRIORITY)); - Add(new cMenuEditIntItem (tr("Minimum Priority"), &m_NewSetup.MinPriority, -MAXPRIORITY, MAXPRIORITY)); - Add(new cMenuEditIntItem (tr("Maximum Priority"), &m_NewSetup.MaxPriority, -MAXPRIORITY, MAXPRIORITY)); + Add(new cMenuEditIntItem (tr("Live TV Priority"), &m_NewSetup.LivePriority, MINPRIORITY, MAXPRIORITY)); + Add(new cMenuEditIntItem (tr("Minimum Priority"), &m_NewSetup.MinPriority, MINPRIORITY, MAXPRIORITY)); + Add(new cMenuEditIntItem (tr("Maximum Priority"), &m_NewSetup.MaxPriority, MINPRIORITY, MAXPRIORITY)); #if APIVERSNUM >= 10715 Add(new cMenuEditIntItem (tr("Broadcast Systems / Cost"), &m_NewSetup.NumProvidedSystems, 1, 15)); #elif APIVERSNUM >= 10700 |