summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2016-03-02 13:14:39 +0100
committerThomas Reufer <thomas@reufer.ch>2016-03-02 13:14:39 +0100
commit07bf1738c6409c566cabb913f910dd248213654a (patch)
treea3de3cb7ebc50477139256afb6154b6db148ba77
parent47a818b11cab22e0c655a45688917b2075a5d74e (diff)
downloadvdr-plugin-rpihddevice-07bf1738c6409c566cabb913f910dd248213654a.tar.gz
vdr-plugin-rpihddevice-07bf1738c6409c566cabb913f910dd248213654a.tar.bz2
only cache images in GPU when high level OSD is active
-rw-r--r--HISTORY1
-rw-r--r--ovgosd.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index a202d8e..9959912 100644
--- a/HISTORY
+++ b/HISTORY
@@ -5,6 +5,7 @@ VDR Plugin 'rpihddevice' Revision History
- set device name
- add option for dual display usage, see README
- fixed:
+ - only cache images in GPU when high level OSD is active
- added proper GPL header to every source file (suggested by Tobias Grimm)
- wait until dispmanx element is removed after OSD reset
- proper release default surface after OSD reset
diff --git a/ovgosd.c b/ovgosd.c
index 683e24f..a1f8a6f 100644
--- a/ovgosd.c
+++ b/ovgosd.c
@@ -2744,7 +2744,7 @@ cOsd *cRpiOsdProvider::CreateOsd(int Left, int Top, uint Level)
int cRpiOsdProvider::StoreImageData(const cImage &Image)
{
- int id = m_ovg->StoreImageData(Image);
+ int id = cRpiSetup::IsHighLevelOsd() ? m_ovg->StoreImageData(Image) : 0;
return id ? id : cOsdProvider::StoreImageData(Image);
}