summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-05-13 16:58:45 +0200
committerJohns <johns98@gmx.net>2012-05-13 16:58:45 +0200
commit43e70b6a3fea0112900507ddcbea43e34423ddd0 (patch)
tree62205b0434cfef7abf8d77a881912d28b4e4a4ee /softhddevice.cpp
parent541754a6190fe022f8e67b9ca08423c2e07db91d (diff)
downloadvdr-plugin-softhddevice-43e70b6a3fea0112900507ddcbea43e34423ddd0.tar.gz
vdr-plugin-softhddevice-43e70b6a3fea0112900507ddcbea43e34423ddd0.tar.bz2
Reduce errors during suspend mode.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp18
1 files changed, 12 insertions, 6 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index 06b4f33..d5e69af 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -698,8 +698,8 @@ void cMenuSetupSoft::Create(void)
audiodrift));
Add(new cMenuEditStraItem(tr("Audio pass-through"), &AudioPassthrough,
2, passthrough));
- Add(new cMenuEditBoolItem(tr("Enable AC-3 downmix"), &AudioDownmix,
- trVDR("no"), trVDR("yes")));
+ Add(new cMenuEditBoolItem(tr("Enable AC-3 (decoder) downmix"),
+ &AudioDownmix, trVDR("no"), trVDR("yes")));
Add(new cMenuEditBoolItem(tr("Volume control"), &AudioSoftvol,
tr("Hardware"), tr("Software")));
Add(new cMenuEditBoolItem(tr("Enable normalize volume"),
@@ -848,17 +848,15 @@ void cMenuSetupSoft::Store(void)
if (Setup.VideoFormat != VideoFormat) {
Setup.VideoFormat = VideoFormat;
cDevice::PrimaryDevice()->SetVideoFormat(Setup.VideoFormat);
- printf("video-format\n");
}
- SetupStore("VideoFormat", Setup.VideoFormat);
+ //SetupStore("VideoFormat", Setup.VideoFormat);
if (Setup.VideoDisplayFormat != VideoDisplayFormat) {
Setup.VideoDisplayFormat = VideoDisplayFormat;
cDevice::
PrimaryDevice()->SetVideoDisplayFormat(eVideoDisplayFormat
(Setup.VideoDisplayFormat));
- printf("video-display-format\n");
}
- SetupStore("VideoDisplayFormat", Setup.VideoDisplayFormat);
+ //SetupStore("VideoDisplayFormat", Setup.VideoDisplayFormat);
ConfigVideoBackground = Background << 8 | (BackgroundAlpha & 0xFF);
SetupStore("Background", ConfigVideoBackground);
@@ -1686,6 +1684,10 @@ uchar *cSoftHdDevice::GrabImage(int &size, bool jpeg, int quality, int width,
dsyslog("[softhddev]%s: %d, %d, %d, %dx%d\n", __FUNCTION__, size, jpeg,
quality, width, height);
+ if (SuspendMode != NOT_SUSPENDED) {
+ return NULL;
+ }
+
return::GrabImage(&size, jpeg, quality, width, height);
}
@@ -2094,6 +2096,10 @@ bool cPluginSoftHdDevice::Service(const char *id, void *data)
return true;
}
+ if (SuspendMode != NOT_SUSPENDED) {
+ return false;
+ }
+
SoftHDDevice_AtmoGrabService_v1_0_t *r =
(SoftHDDevice_AtmoGrabService_v1_0_t *) data;
if (r->structSize != sizeof(SoftHDDevice_AtmoGrabService_v1_0_t)