13
0

check master sources when determining whether a region uses a source. should fix #5618

This commit is contained in:
Paul Davis 2013-08-15 11:43:37 -04:00
parent 7a431f892e
commit 588cc3af74

View File

@ -1490,6 +1490,20 @@ Region::uses_source (boost::shared_ptr<const Source> source) const
}
}
for (SourceList::const_iterator i = _master_sources.begin(); i != _master_sources.end(); ++i) {
if (*i == source) {
return true;
}
boost::shared_ptr<PlaylistSource> ps = boost::dynamic_pointer_cast<PlaylistSource> (*i);
if (ps) {
if (ps->playlist()->uses_source (source)) {
return true;
}
}
}
return false;
}