[mythtv-firehose] mythtv branch master updated by jstichnoth. v0.28-pre-29-g73c9c55

Git Repo Owner noreply at mythtv.org
Wed Sep 4 13:35:48 UTC 2013


The branch, master has been updated on the
mythtv repository by gitolite user jstichnoth.
       via  73c9c55bc202c01d2b6c2172a00293a475672830 (commit)
      from  844778f9fa9b6cd871ee57901baf9e2b7681cdb3 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 73c9c55bc202c01d2b6c2172a00293a475672830
Author:    Jim Stichnoth <jstichnoth at mythtv.org> at Wed, 4 Sep 2013 06:23:07 -0700
Committer: Jim Stichnoth <jstichnoth at mythtv.org> at Wed, 4 Sep 2013 06:23:07 -0700
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=73c9c55bc202c01d2b6c2172a00293a475672830

Handle UTF-16 encoded text subtitle files.  Refs #9836
The code imported from xine that parses external text subtitle files
(e.g. .srt files) uses a great number of sscanf() calls, which doesn't
work with UTF-16 character arrays, nor any other encoding that
includes NUL characters or expands/obfuscates ASCII characters.

Instead of modifying the parser code, we convert the original file
contents to UTF-8 (auto-detecting the original encoding where
possible), send it to the xine code for parsing, and then convert the
individual subtitle strings back to unicode for presentation.

This is adapted from a patch written by Mark Kendall.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythtv/textsubtitleparser.cpp |   79 +++++++++++++++++++------
 1 files changed, 60 insertions(+), 19 deletions(-)

-- 



More information about the mythtv-firehose mailing list