gst/subparse/: Add support for UTF16/UTF32 subtitles as long as the first bytes of...
authorSebastian Dröge <slomo@circular-chaos.org>
Mon, 13 Oct 2008 08:58:29 +0000 (08:58 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 13 Oct 2008 08:58:29 +0000 (08:58 +0000)
commite7b42af896131f265c9b3f14f5b5c670500eea68
tree1a58c67056c1e3334319aa9ac014e673b6e92205
parent796fdbdf17f36db2f1b4dbaa3593f345d0e3440f
gst/subparse/: Add support for UTF16/UTF32 subtitles as long as the first bytes of the first buffer contain the BOM. ...

Original commit message from CVS:
* gst/subparse/Makefile.am:
* gst/subparse/gstsubparse.c: (gst_sub_parse_dispose),
(gst_sub_parse_class_init), (gst_sub_parse_init),
(gst_convert_to_utf8), (detect_encoding), (convert_encoding),
(get_next_line), (gst_sub_parse_data_format_autodetect),
(feed_textbuf), (handle_buffer), (gst_sub_parse_change_state),
(gst_subparse_type_find):
* gst/subparse/gstsubparse.h:
Add support for UTF16/UTF32 subtitles as long as the first bytes of
the first buffer contain the BOM. This also adds support for other
encodings that allow NUL bytes via the encoding property.
Fixes bugs #552237 and #456788.
ChangeLog
gst/subparse/Makefile.am
gst/subparse/gstsubparse.c
gst/subparse/gstsubparse.h