diff options
-rw-r--r-- | src/spu_dec/sputext_decoder.c | 12 |
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; |