[mythtv-commits] mythtv branch fixes/0.27 updated by jstichnoth. v0.27-RC1-31-g2efe279

Git Repo Owner noreply at mythtv.org
Sat Sep 7 14:08:36 UTC 2013


The branch, fixes/0.27 has been updated on the
mythtv repository by gitolite user jstichnoth.
       via  2efe2796efa68109f9d5635151186e60e4d5c0de (commit)
      from  8a6d38c6318700a85a71860395c750511e5880c0 (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 2efe2796efa68109f9d5635151186e60e4d5c0de
Author:    Jim Stichnoth <jstichnoth at mythtv.org> at Wed, 4 Sep 2013 06:23:07 -0700
Committer: Jim Stichnoth <jstichnoth at mythtv.org> at Sat, 7 Sep 2013 07:07:51 -0700
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=2efe2796efa68109f9d5635151186e60e4d5c0de

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.
(cherry picked from commit 73c9c55bc202c01d2b6c2172a00293a475672830)



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

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

-- 



More information about the mythtv-commits mailing list