Commit b512d7a3 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller
Browse files

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.
parent beb92d46
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> 2006-05-15 Wim Taymans <wim@fluendo.com>
   
* ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet): * ext/ogg/gstoggdemux.c: (gst_ogg_pad_submit_packet):
......
...@@ -626,7 +626,8 @@ gst_sub_parse_data_format_autodetect (gchar * match_str) ...@@ -626,7 +626,8 @@ gst_sub_parse_data_format_autodetect (gchar * match_str)
GST_LOG ("MPSub (time based) format detected"); GST_LOG ("MPSub (time based) format detected");
return GST_SUB_PARSE_FORMAT_MPSUB; 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"); GST_LOG ("SAMI (time based) format detected");
return GST_SUB_PARSE_FORMAT_SAMI; return GST_SUB_PARSE_FORMAT_SAMI;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment