diff options
author | Thomas Reufer <thomas@reufer.ch> | 2014-03-16 20:49:00 +0100 |
---|---|---|
committer | Thomas Reufer <thomas@reufer.ch> | 2014-03-16 20:49:00 +0100 |
commit | 2603aec07ecec0ebc85c825f4daedba520726e36 (patch) | |
tree | 37568965c0a8b920b79a6f6ebbd91d2ca066c45c | |
parent | e47ec5523162f8714fcc7158a91f9963d209080e (diff) | |
download | vdr-plugin-rpihddevice-2603aec07ecec0ebc85c825f4daedba520726e36.tar.gz vdr-plugin-rpihddevice-2603aec07ecec0ebc85c825f4daedba520726e36.tar.bz2 |
fixed displaying subtitles when OSD is active (fix by Klaus Schmidinger)
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | ovgosd.c | 8 |
2 files changed, 8 insertions, 1 deletions
@@ -2,6 +2,7 @@ VDR Plugin 'rpihddevice' Revision History ----------------------------------------- - fixed: + - displaying subtitles when OSD is active (fix by Klaus Schmidinger) - default quality when grabbing jpeg image (reported by Klaus Schmidinger) - suppress buffer stall when clock is halted - set clock latency target according omxplayer @@ -271,11 +271,17 @@ cOvgOsd::cOvgOsd(int Left, int Top, uint Level, cOvg *ovg) : cOvgOsd::~cOvgOsd() { - m_ovg->Clear(); + if (Active()) + m_ovg->Clear(); + + SetActive(false); } void cOvgOsd::Flush(void) { + if (!Active()) + return; + if (IsTrueColor()) { LOCK_PIXMAPS; |