summaryrefslogtreecommitdiff
path: root/dxr3osd_subpicture.h
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3osd_subpicture.h')
-rw-r--r--dxr3osd_subpicture.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/dxr3osd_subpicture.h b/dxr3osd_subpicture.h
index e128380..e20566b 100644
--- a/dxr3osd_subpicture.h
+++ b/dxr3osd_subpicture.h
@@ -2,17 +2,30 @@
#define _DXR3OSD_SUBPICTURE_H_
#include "dxr3vdrincludes.h"
-#include "dxr3spuencoder.h"
+#include "dxr3interface_spu_encoder.h"
#if VDRVERSNUM >= 10307
+/*
+ The OSD goes berserk in some setups if it's refreshed too often.
+ If it doesn't happen for you or you don't like the small delay this
+ causes, change this to 0. Experiment with larger values if the default
+ of 25ms does not calm down your OSD.
+*/
+#define FLUSHRATE 25
+
// ==================================
// osd interface for => vdr1,3,7
class cDxr3SubpictureOsd : public cOsd
{
private:
- cSPUEncoder* Spu; ///< interface to cSPUEncoder
- bool shown; ///< is the osd shown?
+ cSPUEncoder* Spu;
+ bool shown;
+#if VDRVERSNUM >= 10318
+ cTimeMs *last;
+#else
+ int last;
+#endif
public:
cDxr3SubpictureOsd(int Left, int Top/*, int SpuDev*/);