GNOME Bugzilla – Bug 357531
[subparse] problem if markup is not closed
Last modified: 2006-10-20 17:02:44 UTC
Let's say we have a .srt file with this sequence of 3 subtitles: - first - <i>second - <i>third When you play the video, it displays: - first - first - first The subtitles files is wrong of course, markups should be closed, but gst should handle that in a better way: - add the missing </i> and display the subtitle in italic - or escape the <i> and display it with the subtitle
Should be fixed in CVS now: 2006-10-20 Tim-Philipp Müller <tim at centricular dot net> * gst/subparse/gstsubparse.c: (subrip_fix_up_markup), (parse_subrip), (handle_buffer): Add missing closing tags for markup and fix broken markup, otherwise pango won't render anything (fixes #357531). Also, make sure the text we send out is always NUL-terminated (better safe than sorry etc.). * tests/check/elements/subparse.c: (test_srt_do_test), (test_srt): Some more tests for .srt, and test for the above.