From 401ea9f683f2d55d570bc921ecc5bb7c82791eea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 23 Dec 2022 16:15:49 +0200 Subject: [PATCH] typefindfunctions: Check for the SVG namespace URL in addition to `` tag only gives a likely indication as it's rather short. Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1540 Part-of: --- .../gst/typefind/gsttypefindfunctions.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c index 2e1344fc08..344c283362 100644 --- a/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c +++ b/subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c @@ -2162,21 +2162,29 @@ svg_type_find (GstTypeFind * tf, gpointer unused) { static const gchar svg_doctype[] = "!DOCTYPE svg"; static const gchar svg_tag[] = " GST_TYPE_FIND_NONE) + gst_type_find_suggest (tf, probability, SVG_CAPS); } /*** multipart/x-mixed-replace mimestream ***/