summaryrefslogtreecommitdiff
path: root/softhddevice.cpp
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-05-14 12:32:09 +0200
committerJohns <johns98@gmx.net>2013-05-14 12:32:09 +0200
commit833112eaa9679f213958b458c1d9e7f3e1f2d788 (patch)
treedd06a10c56c4b0138030b713868c2e49a3b5241c /softhddevice.cpp
parent3022920b4004cf4454a0e9eff5422586564f87ce (diff)
downloadvdr-plugin-softhddevice-833112eaa9679f213958b458c1d9e7f3e1f2d788.tar.gz
vdr-plugin-softhddevice-833112eaa9679f213958b458c1d9e7f3e1f2d788.tar.bz2
Fix bug: grab image negative quality isn't 100.
Diffstat (limited to 'softhddevice.cpp')
-rw-r--r--softhddevice.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/softhddevice.cpp b/softhddevice.cpp
index 73f012d..8bda7cd 100644
--- a/softhddevice.cpp
+++ b/softhddevice.cpp
@@ -2512,6 +2512,9 @@ uchar *cSoftHdDevice::GrabImage(int &size, bool jpeg, int quality, int width,
if (SuspendMode != NOT_SUSPENDED) {
return NULL;
}
+ if (quality < 0) { // caller should care, but fix it
+ quality = 95;
+ }
return::GrabImage(&size, jpeg, quality, width, height);
}