From: Tim-Philipp Müller Date: Mon, 15 May 2006 15:31:30 +0000 (+0000) Subject: gst/subparse/gstsubparse.c: Don't use libxml functions in the typefinding code. X-Git-Tag: 1.19.3~511^2~11896 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b512d7a387108d98decae7de5882b75d84aa5e10;p=platform%2Fupstream%2Fgstreamer.git 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. --- 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; }