Fix strange crash in verify(). bv2.1-verify
authorCarl Hetherington <cth@carlh.net>
Wed, 20 Jan 2021 22:34:54 +0000 (23:34 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 20 Jan 2021 22:34:54 +0000 (23:34 +0100)
commit6c3db78c3d20ef064fa2a0ef38e65ca1ae69adb3
tree32e802b1e96541601fecda4c8c57fe2a3550ef69
parentd25bff524306913e274153ecb44115e4e3696841
Fix strange crash in verify().

This appears to be necessary to stop the first write to
state.subtitle_language from segfaulting.  It looks like the
optional<> is in some uninitialised / indeterminate state.

I could only reproduce this crash when running verify() from DoM,
not from the `dcpverify` tool.  And some simple test programs suggest
that even doing

State state;

should call the constructors of anything in State.
src/verify.cc