gst/subparse/gstsubparse.c: Don't use libxml functions in the typefinding code.

Original commit message from CVS:
* gst/subparse/gstsubparse.c:
(gst_sub_parse_data_format_autodetect):
Don't use libxml functions in the typefinding code.
This commit is contained in:
Tim-Philipp Müller 2006-05-15 15:31:30 +00:00
parent beb92d46af
commit b512d7a387
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2006-05-15 Tim-Philipp Müller <tim at centricular dot net>
* gst/subparse/gstsubparse.c:
(gst_sub_parse_data_format_autodetect):
Don't use libxml functions in the typefinding code.
2006-05-15 Wim Taymans <wim@fluendo.com>
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet):

View file

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