diff --git a/ChangeLog b/ChangeLog index bd7511e59d..3e222aa642 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-15 Tim-Philipp Müller + + * gst/subparse/gstsubparse.c: + (gst_sub_parse_data_format_autodetect): + Don't use libxml functions in the typefinding code. + 2006-05-15 Wim Taymans * ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet): diff --git a/gst/subparse/gstsubparse.c b/gst/subparse/gstsubparse.c index 4b7d1150d8..7fc028112c 100644 --- a/gst/subparse/gstsubparse.c +++ b/gst/subparse/gstsubparse.c @@ -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 *) "")) { + if (strstr (match_str, "") != NULL || + strstr (match_str, "") != NULL) { GST_LOG ("SAMI (time based) format detected"); return GST_SUB_PARSE_FORMAT_SAMI; }