summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPetri Hintukainen <phintuka@users.sourceforge.net>2014-05-20 12:22:39 +0300
committerPetri Hintukainen <phintuka@users.sourceforge.net>2014-05-20 12:22:39 +0300
commitfb3db8a217d6357afa4e88a4107f87845ad514b8 (patch)
treea81c11ec300c744ea90f31a33fa88d182b935c5a /src
parente211952a61f85b07e10b8bd4bb1bface6eb53ab8 (diff)
downloadxine-lib-fb3db8a217d6357afa4e88a4107f87845ad514b8.tar.gz
xine-lib-fb3db8a217d6357afa4e88a4107f87845ad514b8.tar.bz2
sputext_decoder: ignore case in control codes (<b>, <i>, ...)
Diffstat (limited to 'src')
-rw-r--r--src/spu_dec/sputext_decoder.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/spu_dec/sputext_decoder.c b/src/spu_dec/sputext_decoder.c
index b9532e94e..2bd7dd885 100644
--- a/src/spu_dec/sputext_decoder.c
+++ b/src/spu_dec/sputext_decoder.c
@@ -338,36 +338,36 @@ static int ogm_render_line_internal(sputext_decoder_t *this, int x, int y, const
while (i <= length) {
if (text[i] == '<') {
- if (!strncmp("<b>", text+i, 3)) {
+ if (!strncasecmp("<b>", text+i, 3)) {
/* enable Bold color */
if (render)
this->current_osd_text = OSD_TEXT2;
i=i+3;
continue;
- } else if (!strncmp("</b>", text+i, 4)) {
+ } else if (!strncasecmp("</b>", text+i, 4)) {
/* disable BOLD */
if (render)
this->current_osd_text = OSD_TEXT1;
i=i+4;
continue;
- } else if (!strncmp("<i>", text+i, 3)) {
+ } else if (!strncasecmp("<i>", text+i, 3)) {
/* enable italics color */
if (render)
this->current_osd_text = OSD_TEXT3;
i=i+3;
continue;
- } else if (!strncmp("</i>", text+i, 4)) {
+ } else if (!strncasecmp("</i>", text+i, 4)) {
/* disable italics */
if (render)
this->current_osd_text = OSD_TEXT1;
i=i+4;
continue;
- } else if (!strncmp("<font>", text+i, 6)) {
+ } else if (!strncasecmp("<font>", text+i, 6)) {
/*Do somethink to disable typing
fixme - no teststreams*/
i=i+6;
continue;
- } else if (!strncmp("</font>", text+i, 7)) {
+ } else if (!strncasecmp("</font>", text+i, 7)) {
/*Do somethink to enable typing
fixme - no teststreams*/
i=i+7;