diff options
author | scop <scop> | 2007-11-27 21:47:55 +0000 |
---|---|---|
committer | scop <scop> | 2007-11-27 21:47:55 +0000 |
commit | 66e179b14854ea3b5be913247b8df7b8229c358a (patch) | |
tree | 36d120b6877ed16359d05ef1250b1a295eed3c41 | |
parent | 0e5b4396f1a68baa3a3abffd4d882b147420c7a0 (diff) | |
download | vdr-plugin-dxr3-66e179b14854ea3b5be913247b8df7b8229c358a.tar.gz vdr-plugin-dxr3-66e179b14854ea3b5be913247b8df7b8229c358a.tar.bz2 |
Fix subtitles for VDR >= 1.5.11 (Luca Olivetti)
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | dxr3osd_subpicture.c | 10 | ||||
-rw-r--r-- | dxr3osd_subpicture.h | 1 |
3 files changed, 12 insertions, 0 deletions
@@ -338,3 +338,4 @@ NOTE: I havent found time to include all of the languages, will be done in pre2 - Fix build with VDR >= 1.5.9 (Ville Skyttä) - Drop support for VDR < 1.4.0 (Ville Skyttä) - Implement OSD level for VDR >= 1.5.9 (Luca Olivetti) +- Fix subtitles for VDR >= 1.5.11 (Luca Olivetti) diff --git a/dxr3osd_subpicture.c b/dxr3osd_subpicture.c index edb2f84..83ec05f 100644 --- a/dxr3osd_subpicture.c +++ b/dxr3osd_subpicture.c @@ -117,6 +117,16 @@ eOsdError cDxr3SubpictureOsd::CanHandleAreas(const tArea *Areas, int NumAreas) return Result; } +eOsdError cDxr3SubpictureOsd::SetAreas(const tArea *Areas, int NumAreas) +{ + if (shown) + { + Spu->Clear(); + shown = false; + } + return cOsd::SetAreas(Areas, NumAreas); +} + // ================================== void cDxr3SubpictureOsd::Flush() { diff --git a/dxr3osd_subpicture.h b/dxr3osd_subpicture.h index 2a24907..eb7d732 100644 --- a/dxr3osd_subpicture.h +++ b/dxr3osd_subpicture.h @@ -26,6 +26,7 @@ public: ~cDxr3SubpictureOsd(); eOsdError CanHandleAreas(const tArea *Areas, int NumAreas); + eOsdError SetAreas(const tArea *Areas, int NumAreas); void Flush(); }; |