diff options
author | Tobias Grimm <git@e-tobi.net> | 2010-02-26 00:47:53 +0100 |
---|---|---|
committer | Tobias Grimm <git@e-tobi.net> | 2010-02-26 00:47:53 +0100 |
commit | 29a737636fb3791fb5d38b5584b951add7c58106 (patch) | |
tree | 58e940a69f68f9b87e7929af489c05c97da096c7 | |
parent | 7c1f03fc2c90fa491eedfdf2a8932cb8ac1db659 (diff) | |
download | vdr-plugin-ttxtsubs-29a737636fb3791fb5d38b5584b951add7c58106.tar.gz vdr-plugin-ttxtsubs-29a737636fb3791fb5d38b5584b951add7c58106.tar.bz2 |
Fixed the header line flags initialisation order
...which I've messed up in the last commit
-rw-r--r-- | ttxtsubsdisplay.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/ttxtsubsdisplay.c b/ttxtsubsdisplay.c index 96d3c72..f1eb77a 100644 --- a/ttxtsubsdisplay.c +++ b/ttxtsubsdisplay.c @@ -229,17 +229,16 @@ void cTtxtSubsDisplay::TtxtData(const uint8_t *Data, uint64_t sched_time) if (mag == _mag && no == _no) { - if (fi[3] & 0x80) // Erase Page - { - memset(&_page, 0, sizeof(_page)); - _page.flags |= erasepage; - } _page.mag = mag; _page.no = no; _page.flags = 0; - _page.national_charset = 0; + if (fi[3] & 0x80) // Erase Page + { + memset(&_page.data, 0, sizeof(_page.data)); + _page.flags |= erasepage; + } if (fi[5] & 0x20) // Newsflash _page.flags |= newsflash; if (fi[5] & 0x80) // Subtitle |