Add support for subtitle files with UTF-8 BOM at the beginning by simple stripping...
authorSebastian Dröge <slomo@circular-chaos.org>
Fri, 10 Oct 2008 17:13:40 +0000 (17:13 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Fri, 10 Oct 2008 17:13:40 +0000 (17:13 +0000)
commit60bf63486bc7fdf44b698a8cf078d26315727696
treea1806582ab8f22d92db3d2407fb369888ae91a7f
parent81f5117fa9ef267ac5eb5ad6bdbcc4f0fab1e2fc
Add support for subtitle files with UTF-8 BOM at the beginning by simple stripping it from the first line before pass...

Original commit message from CVS:
* gst/subparse/gstsubparse.c:
(gst_sub_parse_data_format_autodetect), (handle_buffer),
(gst_sub_parse_change_state):
* gst/subparse/gstsubparse.h:
* tests/check/elements/subparse.c: (GST_START_TEST):
Add support for subtitle files with UTF-8 BOM at the beginning
by simple stripping it from the first line before passing it
to any parsing code. Fixes bug #555257 and playback of files
created by Gnome Subtitles.
ChangeLog
gst/subparse/gstsubparse.c
gst/subparse/gstsubparse.h
tests/check/elements/subparse.c