diff options
| -rw-r--r-- | HISTORY | 1 | ||||
| -rw-r--r-- | omxdevice.c | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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)); |
