Improve handling of image subtitle IDs in XML (DoM bug #1965)
authorCarl Hetherington <cth@carlh.net>
Wed, 14 Apr 2021 07:56:21 +0000 (09:56 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 14 Apr 2021 14:20:53 +0000 (16:20 +0200)
commit098007a1ee6a46b6ff11398f94faff5c85951da4
tree3459f804ad51d8e22a2a0c1e9bcca5cf0e623a6f
parent1ffc787c6318815592e8d81c4878488eb6183ca4
Improve handling of image subtitle IDs in XML (DoM bug #1965)

When reading/writing the XML for image subtitles, we assumed that
the content of the <Image> tag is just the ID of the PNG in the MXF,
without any prefix.

DoM bug #1965 mentions a DCP where this is not the case, and SMPTE
429-5-2009 has an example where there is urn:uuid: in the XML.

This change makes DoM write this urn:uuid: prefix, and accept it if
it's present (but not complain if it's not).

If the urn:uuid: _is_ required in the field, it's a bit surprising
that nobody has complained up to this point.  Maybe nobody noticed,
or nobody reported it.
src/subtitle_asset.cc
src/subtitle_asset_internal.cc
src/warnings.h
test/data/subs.mxf
test/smpte_subtitle_test.cc
test/verify_test.cc