summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Reufer <thomas@reufer.ch>2015-05-22 19:18:13 +0200
committerThomas Reufer <thomas@reufer.ch>2015-05-22 19:18:13 +0200
commit6c0e5cbe5fbe1f995e6e60b4c5f8843909efe67c (patch)
tree52123024de559cd3cf33e09223c024464e94707c
parent1129ef4d34d0bf4c6d0b74dd76094b7cc36aa151 (diff)
downloadvdr-plugin-rpihddevice-6c0e5cbe5fbe1f995e6e60b4c5f8843909efe67c.tar.gz
vdr-plugin-rpihddevice-6c0e5cbe5fbe1f995e6e60b4c5f8843909efe67c.tar.bz2
wait for the OVG thread to be ready when creating an accelerated OSD
-rw-r--r--HISTORY1
-rw-r--r--ovgosd.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index d638dde..df2c928 100644
--- a/HISTORY
+++ b/HISTORY
@@ -2,6 +2,7 @@ VDR Plugin 'rpihddevice' Revision History
-----------------------------------------
- fixed:
+ - wait for the OVG thread to be ready when creating an accelerated OSD
- set field sync when output interlaced material at interlaced display mode
2015-04-29: Version 0.1.0
diff --git a/ovgosd.c b/ovgosd.c
index c9963e5..cbfb391 100644
--- a/ovgosd.c
+++ b/ovgosd.c
@@ -2267,7 +2267,11 @@ public:
m_ovg(ovg),
m_surface(new cOvgRenderTarget()),
m_savedRegion(new cOvgSavedRegion())
- { }
+ {
+ cTimeMs timer(10000);
+ while (!m_ovg->MaxImageSize().Height() && !timer.TimedOut())
+ cCondWait::SleepMs(100);
+ }
virtual ~cOvgOsd()
{