From fc1ce39168492175bfec3cb3dc15e79eea648bb0 Mon Sep 17 00:00:00 2001 From: focus Date: Thu, 18 Feb 2010 16:55:53 +0000 Subject: [PATCH] Change new line to space until OSD code will suppport newline parsing git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@377 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/audio_select.cpp | 2 +- src/sectionsd/edvbstring.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/audio_select.cpp b/src/gui/audio_select.cpp index 4871268b9..cc5f1e5dc 100644 --- a/src/gui/audio_select.cpp +++ b/src/gui/audio_select.cpp @@ -153,7 +153,7 @@ int CAudioSelectMenuHandler::doMenu () } } if(sep_added) { - AudioSelector.addItem(new CMenuForwarder(LOCALE_SUBTITLES_STOP, true, NULL, &SubtitleChanger, "off")); + AudioSelector.addItem(new CMenuForwarder(LOCALE_SUBTITLES_STOP, true, NULL, &SubtitleChanger, "off", CRCInput::RC_stop)); } } diff --git a/src/sectionsd/edvbstring.cpp b/src/sectionsd/edvbstring.cpp index 4946429da..1c5834977 100644 --- a/src/sectionsd/edvbstring.cpp +++ b/src/sectionsd/edvbstring.cpp @@ -423,7 +423,9 @@ std::string convertDVBUTF8(const char *data, int len, int table, int tsidonid) if (code < 0x80) // identity ascii <-> utf8 mapping res[t++]=char(code); else if (/*(table == 5) &&*/ (code == 0x8A)) // I don't think this is related to table 5 --seife - res[t++]= '\n'; // 0x8a is vertical tab. Just use newline for now. + /* code for parsing text in OSD (event details etc) not support \n it seems, + as result all text after \n is missed. let it be space for now --focus */ + res[t++]= 0x20;//'\n'; // 0x8a is vertical tab. Just use newline for now. else if (code < 0x800) // two byte mapping { res[t++]=(code>>6)|0xC0;