summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-15 16:02:32 +0100
committerJohns <johns98@gmx.net>2011-12-15 16:02:32 +0100
commitc79d992a81adb4c9839c1b40cff4a9ebe0e0b152 (patch)
treeb57706dbe115c0716c30a7cbe7ca75afb8cd62b8 /softhddevice.cpp
parent5ca9bedda810e84b7bc1dc476c39c817563ad353 (diff)
downloadvdr-plugin-softhddevice-c79d992a81adb4c9839c1b40cff4a9ebe0e0b152.tar.gz
vdr-plugin-softhddevice-c79d992a81adb4c9839c1b40cff4a9ebe0e0b152.tar.bz2
Use current configuration for setup menu.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp15
1 files changed, 9 insertions, 6 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index 9ef3fa3..68585c7 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -48,8 +48,10 @@ static class cSoftHdDevice *MyDevice;
//////////////////////////////////////////////////////////////////////////////
-static char ConfigMakePrimary = 1;
-static char DoMakePrimary;
+static char ConfigMakePrimary; ///< config primary wanted
+static char ConfigVideoDeinterlace; ///< config deinterlace
+static char ConfigVideoScaling; ///< config scaling
+static char DoMakePrimary; ///< flag switch primary
//////////////////////////////////////////////////////////////////////////////
@@ -277,9 +279,12 @@ cMenuSetupSoft::cMenuSetupSoft(void)
// cMenuEditBoolItem cMenuEditBitItem cMenuEditNumItem
// cMenuEditStrItem cMenuEditStraItem cMenuEditIntItem
+ MakePrimary = ConfigMakePrimary;
Add(new cMenuEditBoolItem(tr("Make primary device"), &MakePrimary,
tr("no"), tr("yes")));
+ Deinterlace = ConfigVideoDeinterlace;
Add(new cMenuEditStraItem(tr("Deinterlace"), &Deinterlace, 5, deinterlace));
+ Scaling = ConfigVideoScaling;
Add(new cMenuEditStraItem(tr("Scaling"), &Scaling, 4, scaling));
}
@@ -752,13 +757,11 @@ bool cPluginSoftHdDevice::SetupParse(const char *name, const char *value)
return true;
}
if (!strcmp(name, "Deinterlace")) {
- printf("Deinterlace: %d\n", atoi(value));
- VideoSetDeinterlace(atoi(value));
+ VideoSetDeinterlace(ConfigVideoDeinterlace = atoi(value));
return true;
}
if (!strcmp(name, "Scaling")) {
- printf("Scaling: %d\n", atoi(value));
- VideoSetScaling(atoi(value));
+ VideoSetScaling(ConfigVideoScaling = atoi(value));
return true;
}