Fixed parsing Min/MaxPriority from config

This commit is contained in:
schmirl 2009-02-03 10:26:23 +00:00
parent 507365d16e
commit 64ac6278bf
3 changed files with 7 additions and 3 deletions

View File

@ -91,3 +91,6 @@ wirbel
Jori Hamalainen Jori Hamalainen
for extensive testing while making stream compatible to Network Media Tank for extensive testing while making stream compatible to Network Media Tank
for adding Network Media Tank browser support to HTML pages for adding Network Media Tank browser support to HTML pages
Joachim König-Baltes
for fixing Min/MaxPriority parsing

View File

@ -1,6 +1,7 @@
eDR Plugin 'streamdev' Revision History eDR Plugin 'streamdev' Revision History
--------------------------------------- ---------------------------------------
- fixed parsing Min/MaxPriority from config (thanks to Joachim König-Baltes)
- updated Finnish translation (thanks to Rolf Ahrenberg) - updated Finnish translation (thanks to Rolf Ahrenberg)
- added Min/MaxPriority parameters. Can be used to keep client VDR from - added Min/MaxPriority parameters. Can be used to keep client VDR from
using streamdev e.g. when recording using streamdev e.g. when recording

View File

@ -1,5 +1,5 @@
/* /*
* $Id: setup.c,v 1.5.2.1 2009/01/29 07:49:05 schmirl Exp $ * $Id: setup.c,v 1.5.2.2 2009/02/03 10:26:24 schmirl Exp $
*/ */
#include <vdr/menuitems.h> #include <vdr/menuitems.h>
@ -33,8 +33,8 @@ bool cStreamdevClientSetup::SetupParse(const char *Name, const char *Value) {
else if (strcmp(Name, "StreamFilters") == 0) StreamFilters = atoi(Value); else if (strcmp(Name, "StreamFilters") == 0) StreamFilters = atoi(Value);
else if (strcmp(Name, "SyncEPG") == 0) SyncEPG = atoi(Value); else if (strcmp(Name, "SyncEPG") == 0) SyncEPG = atoi(Value);
else if (strcmp(Name, "HideMenuEntry") == 0) HideMenuEntry = atoi(Value); else if (strcmp(Name, "HideMenuEntry") == 0) HideMenuEntry = atoi(Value);
else if (strcmp(Name, "MinPriority") == 0) HideMenuEntry = atoi(Value); else if (strcmp(Name, "MinPriority") == 0) MinPriority = atoi(Value);
else if (strcmp(Name, "MaxPriority") == 0) HideMenuEntry = atoi(Value); else if (strcmp(Name, "MaxPriority") == 0) MaxPriority = atoi(Value);
else return false; else return false;
return true; return true;
} }