gst/subparse/gstsubparse.c: Improve SAMI typefinding: handle case where there are...
authorTim-Philipp Müller <tim@centricular.net>
Mon, 15 May 2006 14:19:35 +0000 (14:19 +0000)
committerTim-Philipp Müller <tim@centricular.net>
Mon, 15 May 2006 14:19:35 +0000 (14:19 +0000)
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).

ChangeLog
gst/subparse/gstsubparse.c

index 5bbd5e4..a438623 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 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:
          Build video4linux plugin even if there's no XVIDEO, just
          without implementing the GstXOverlay interface (#334002).
index 8e2f6bf..4b7d115 100644 (file)
@@ -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;
   }