typefindfunctions: Check for the SVG namespace URL in addition to `<svg` and the...
authorSebastian Dröge <sebastian@centricular.com>
Fri, 23 Dec 2022 14:15:49 +0000 (16:15 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 4 Jan 2023 00:49:47 +0000 (00:49 +0000)
commit401ea9f683f2d55d570bc921ecc5bb7c82791eea
tree7b57f3d1b78b386c14d9eafe064017307813b224
parent5ff5f9fd5bfcb1319c54dd04d3486de1b2416444
typefindfunctions: Check for the SVG namespace URL in addition to `<svg` and the doctype

Finding the SVG namespace URL gives a clear indication that this is
actually an SVG file while the `<svg>` tag only gives a likely
indication as it's rather short.

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1540

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3631>
subprojects/gst-plugins-base/gst/typefind/gsttypefindfunctions.c