: FFmpegStream (node)
{
if (version >= 33) {
+ boost::mutex::scoped_lock lm (_mutex);
BOOST_FOREACH (cxml::NodePtr i, node->node_children ("Colour")) {
_colours[RGBA(i->node_child("From"))] = RGBA (i->node_child("To"));
}
{
FFmpegStream::as_xml (root);
+ boost::mutex::scoped_lock lm (_mutex);
for (map<RGBA, RGBA>::const_iterator i = _colours.begin(); i != _colours.end(); ++i) {
xmlpp::Node* node = root->add_child("Colour");
i->first.as_xml (node->add_child("From"));
map<RGBA, RGBA>
FFmpegSubtitleStream::colours () const
{
+ boost::mutex::scoped_lock lm (_mutex);
return _colours;
}
void
FFmpegSubtitleStream::set_colour (RGBA from, RGBA to)
{
+ boost::mutex::scoped_lock lm (_mutex);
_colours[from] = to;
}