Refine: make desktop-capturer as a renderer module.
This commit is contained in:
		
					parent
					
						
							
								48fbd47416
							
						
					
				
			
			
				commit
				
					
						1e69ef79de
					
				
			
		
					 12 changed files with 237 additions and 74 deletions
				
			
		|  | @ -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; | ||||
|     } | ||||
|   } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Haojian Wu
				Haojian Wu