summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2014-03-16 20:39:54 +0100
committerThomas Reufer <thomas@reufer.ch>2014-03-16 20:39:54 +0100
commite47ec5523162f8714fcc7158a91f9963d209080e (patch)
tree86b29a970eb7b9bb3cec6620db4dfca0f7ea01c6
parentcaf8862080d1a858bcdfb39dfe6371ec3892bd31 (diff)
downloadvdr-plugin-rpihddevice-e47ec5523162f8714fcc7158a91f9963d209080e.tar.gz
vdr-plugin-rpihddevice-e47ec5523162f8714fcc7158a91f9963d209080e.tar.bz2
fixed default quality when grabbing jpeg image (reported by Klaus Schmidinger)
-rw-r--r--HISTORY1
-rw-r--r--omxdevice.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 65496ae..0a405b2 100644
--- a/HISTORY
+++ b/HISTORY
@@ -2,6 +2,7 @@ VDR Plugin 'rpihddevice' Revision History
-----------------------------------------
- fixed:
+ - default quality when grabbing jpeg image (reported by Klaus Schmidinger)
- suppress buffer stall when clock is halted
- set clock latency target according omxplayer
diff --git a/omxdevice.c b/omxdevice.c
index fb785fd..54e7010 100644
--- a/omxdevice.c
+++ b/omxdevice.c
@@ -320,6 +320,7 @@ uchar *cOmxDevice::GrabImage(int &Size, bool Jpeg, int Quality,
SizeX = (SizeX > 0) ? SizeX : width;
SizeY = (SizeY > 0) ? SizeY : height;
+ Quality = (Quality >= 0) ? Quality : 100;
// bigger than needed, but uint32_t ensures proper alignment
uint8_t* frame = (uint8_t*)(MALLOC(uint32_t, SizeX * SizeY));