summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2014-03-16 20:49:00 +0100
committerThomas Reufer <thomas@reufer.ch>2014-03-16 20:49:00 +0100
commit2603aec07ecec0ebc85c825f4daedba520726e36 (patch)
tree37568965c0a8b920b79a6f6ebbd91d2ca066c45c
parente47ec5523162f8714fcc7158a91f9963d209080e (diff)
downloadvdr-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--HISTORY1
-rw-r--r--ovgosd.c8
2 files changed, 8 insertions, 1 deletions
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;