mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 05:16:05 +00:00
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:
parent
9cecbd7a0e
commit
9d3254cca0
2 changed files with 9 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue