Fix deadlock when changing CPL in the player (#1827).
authorCarl Hetherington <cth@carlh.net>
Sat, 17 Oct 2020 20:23:12 +0000 (22:23 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 17 Oct 2020 20:23:12 +0000 (22:23 +0200)
commitb33881c9ebe55084434bfea16ba050ad1ba6cb03
tree326e6b53969af54cf6be4ea5bbf770e2574ac2bf
parent1436de822ff18b0f3a6dafbea1e212ac068cc0fd
Fix deadlock when changing CPL in the player (#1827).

TextContent::set_dcp_track can end up requesting a view update, which
involves calls to methods in Content which lock the Content::_mutex.
Do these calls without a lock on that mutex held.

Also, it looks like we would append to texts on every call to
examine().  Fix that so that we replace the texts list on each
examine() call.
src/lib/dcp_content.cc