From 2603aec07ecec0ebc85c825f4daedba520726e36 Mon Sep 17 00:00:00 2001 From: Thomas Reufer Date: Sun, 16 Mar 2014 20:49:00 +0100 Subject: fixed displaying subtitles when OSD is active (fix by Klaus Schmidinger) --- HISTORY | 1 + ovgosd.c | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/HISTORY b/HISTORY index 0a405b2..f6f8c9d 100644 --- a/HISTORY +++ b/HISTORY @@ -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 diff --git a/ovgosd.c b/ovgosd.c index 6574658..d2e05ee 100644 --- a/ovgosd.c +++ b/ovgosd.c @@ -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; -- cgit v1.2.3