diff options
-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(); }; |