diff options
author | Dr. Seltsam <> | 2013-11-05 16:46:46 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2013-11-05 16:46:46 +0100 |
commit | 0e40f5f8723951b731cfb56f66947141d18f1526 (patch) | |
tree | 0042f880c1fbb69c23caf30c80eac7dbb6660bc9 /softhddevice.cpp | |
parent | fb2a7f9959d6f9d3bf385a7a32abcf6b1c599ad2 (diff) | |
download | vdr-plugin-softhddevice-0e40f5f8723951b731cfb56f66947141d18f1526.tar.gz vdr-plugin-softhddevice-0e40f5f8723951b731cfb56f66947141d18f1526.tar.bz2 |
Add support to configure and clear buffers on channel switch.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r-- | softhddevice.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp index c2839ce..76d924d 100644 --- a/softhddevice.cpp +++ b/softhddevice.cpp @@ -91,6 +91,7 @@ static char ConfigVideoStudioLevels; ///< config use studio levels static char ConfigVideo60HzMode; ///< config use 60Hz display mode static char ConfigVideoSoftStartSync; ///< config use softstart sync static char ConfigVideoBlackPicture; ///< config enable black picture mode +char ConfigVideoClearOnSwitch; ///< config enable Clear on channel switch static int ConfigVideoBrightness; ///< config video brightness static int ConfigVideoContrast = 1000; ///< config video contrast @@ -595,6 +596,7 @@ class cMenuSetupSoft:public cMenuSetupPage int _60HzMode; int SoftStartSync; int BlackPicture; + int ClearOnSwitch; int Brightness; int Contrast; @@ -785,6 +787,8 @@ void cMenuSetupSoft::Create(void) trVDR("no"), trVDR("yes"))); Add(new cMenuEditBoolItem(tr("Black during channel switch"), &BlackPicture, trVDR("no"), trVDR("yes"))); + Add(new cMenuEditBoolItem(tr("Clear decoder on channel switch"), + &ClearOnSwitch, trVDR("no"), trVDR("yes"))); Add(new cMenuEditIntItem(tr("Brightness (-1000..1000) (vdpau)"), &Brightness, -1000, 1000, tr("min"), tr("max"))); @@ -1010,6 +1014,7 @@ cMenuSetupSoft::cMenuSetupSoft(void) _60HzMode = ConfigVideo60HzMode; SoftStartSync = ConfigVideoSoftStartSync; BlackPicture = ConfigVideoBlackPicture; + ClearOnSwitch = ConfigVideoClearOnSwitch; Brightness = ConfigVideoBrightness; Contrast = ConfigVideoContrast; @@ -1133,6 +1138,7 @@ void cMenuSetupSoft::Store(void) VideoSetSoftStartSync(ConfigVideoSoftStartSync); SetupStore("BlackPicture", ConfigVideoBlackPicture = BlackPicture); VideoSetBlackPicture(ConfigVideoBlackPicture); + SetupStore("ClearOnSwitch", ConfigVideoClearOnSwitch = ClearOnSwitch); SetupStore("Brightness", ConfigVideoBrightness = Brightness); VideoSetBrightness(ConfigVideoBrightness); @@ -2852,6 +2858,10 @@ bool cPluginSoftHdDevice::SetupParse(const char *name, const char *value) VideoSetBlackPicture(ConfigVideoBlackPicture = atoi(value)); return true; } + if (!strcasecmp(name, "ClearOnSwitch")) { + ConfigVideoClearOnSwitch = atoi(value); + return true; + } if (!strcasecmp(name, "Brightness")) { VideoSetBrightness(ConfigVideoBrightness = atoi(value)); return true; |