From: Sebastian Dröge Date: Fri, 6 Jan 2023 12:37:31 +0000 (+0200) Subject: typefindfunctions: Reduce XML typefinder minimum data size from 64 to 32 bytes X-Git-Tag: 1.22.0~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54ff9b2b5f2d72f5f6f98acd65d8ebf7375e73b9;p=platform%2Fupstream%2Fgstreamer.git typefindfunctions: Reduce XML typefinder minimum data size from 64 to 32 bytes 64 bytes makes the typefinder fail on very small XML documents on which it succeeded previously. Part-of: --- diff --git a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c index 344c283..121a9a5 100644 --- a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c +++ b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c @@ -660,7 +660,7 @@ xml_check_first_element (GstTypeFind * tf, const gchar * element, guint elen, /* try a default that should be enough */ if (length == 0) length = 512; - else if (length < 64) + else if (length < 32) return FALSE; else /* the first few bytes should be enough */ length = MIN (4096, length);