diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-05-20 12:33:16 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2014-05-20 12:33:16 +0300 |
commit | 491fa978290cd3d3b402db83fb5311f74a6bd010 (patch) | |
tree | 51f5744f1107b1e668275911e9cacb60b33c8b97 /src | |
parent | fb3db8a217d6357afa4e88a4107f87845ad514b8 (diff) | |
download | xine-lib-491fa978290cd3d3b402db83fb5311f74a6bd010.tar.gz xine-lib-491fa978290cd3d3b402db83fb5311f74a6bd010.tar.bz2 |
sputext_decoder: allow attributes in <font> tag
Diffstat (limited to 'src')
-rw-r--r-- | src/spu_dec/sputext_decoder.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/spu_dec/sputext_decoder.c b/src/spu_dec/sputext_decoder.c index 2bd7dd885..416455b18 100644 --- a/src/spu_dec/sputext_decoder.c +++ b/src/spu_dec/sputext_decoder.c @@ -367,6 +367,13 @@ static int ogm_render_line_internal(sputext_decoder_t *this, int x, int y, const fixme - no teststreams*/ i=i+6; continue; + } else if (!strncasecmp("<font ", text+i, 6)) { + /* TODO: parse and use attributes. seen: <font color="#xxyyzz"> */ + const char *end = strchr(text + i, '>'); + if (end) { + i += (end - (text + i)) + 1; + continue; + } } else if (!strncasecmp("</font>", text+i, 7)) { /*Do somethink to enable typing fixme - no teststreams*/ |