typefindfunctions: Increase xml typefinder closing brace limit
authorIlie Halip <ilie.halip@gmail.com>
Sat, 18 Mar 2023 09:54:15 +0000 (11:54 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 30 Mar 2023 23:12:23 +0000 (23:12 +0000)
commit476a8aca78273bc992d9899f228f6fa5a383657a
tree4f6d983fdaeb681fc86034cdde7efa90d0acac5b
parentd2678a1f5480e08b712f6ace74ce3a3509bb306b
typefindfunctions: Increase xml typefinder closing brace limit

If the first XML element in a DASH manifest has its closing brance
beyond the first 512 bytes (because of, e.g. lots of attributes),
the MPD typefinder fails. Try to read a larger block, and then
smaller blocks until 512 bytes.

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

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