check master sources when determining whether a region uses a source. should fix #5618
This commit is contained in:
parent
7a431f892e
commit
588cc3af74
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user