gst/subparse/gstsubparse.c: Improve SAMI typefinding: handle case where there are whitespaces or newlines in front of...

Original commit message from CVS:
* gst/subparse/gstsubparse.c:
(gst_sub_parse_data_format_autodetect):
Improve SAMI typefinding: handle case where there are
whitespaces or newlines in front of the first <SAMI>
tag (#169936).
This commit is contained in:
Tim-Philipp Müller 2006-05-15 14:19:35 +00:00
parent 9cecbd7a0e
commit 9d3254cca0
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,11 @@
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
* gst/subparse/gstsubparse.c:
(gst_sub_parse_data_format_autodetect):
Improve SAMI typefinding: handle case where there are
whitespaces or newlines in front of the first <SAMI>
tag (#169936).
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
* configure.ac:

View file

@ -626,7 +626,7 @@ gst_sub_parse_data_format_autodetect (gchar * match_str)
GST_LOG ("MPSub (time based) format detected");
return GST_SUB_PARSE_FORMAT_MPSUB;
}
if (!g_ascii_strncasecmp (match_str, "<SAMI>", 6)) {
if (xmlStrcasestr ((const xmlChar *) match_str, (xmlChar *) "<SAMI>")) {
GST_LOG ("SAMI (time based) format detected");
return GST_SUB_PARSE_FORMAT_SAMI;
}