Refine: make desktop-capturer as a renderer module.

This commit is contained in:
Haojian Wu 2015-10-04 09:35:00 +08:00
parent 48fbd47416
commit 1e69ef79de
12 changed files with 237 additions and 74 deletions

View file

@ -297,8 +297,8 @@ void NativeDesktopMediaList::OnSourcesList(
// Iterate through the old sources to find the removed sources.
for (size_t i = 0; i < sources_.size(); ++i) {
if (new_source_set.find(sources_[i].id) == new_source_set.end()) {
sources_.erase(sources_.begin() + i);
observer_->OnSourceRemoved(i);
sources_.erase(sources_.begin() + i);
--i;
}
}