| Index: content/browser/renderer_host/media/video_capture_manager.cc
|
| diff --git a/content/browser/renderer_host/media/video_capture_manager.cc b/content/browser/renderer_host/media/video_capture_manager.cc
|
| index f86009aefed82fc268dcaa99a0e31868d7a13577..924e9bf8059988210bb2dfa56633f6fe0dccb071 100644
|
| --- a/content/browser/renderer_host/media/video_capture_manager.cc
|
| +++ b/content/browser/renderer_host/media/video_capture_manager.cc
|
| @@ -550,8 +550,9 @@ void VideoCaptureManager::OnDeviceStarted(
|
|
|
| auto request = photo_request_queue_.begin();
|
| while(request != photo_request_queue_.end()) {
|
| - if (GetDeviceEntryBySessionId(request->first)->video_capture_device()) {
|
| - request->second.Run(entry->video_capture_device());
|
| + DeviceEntry* maybe_entry = GetDeviceEntryBySessionId(request->first);
|
| + if (maybe_entry && maybe_entry->video_capture_device()) {
|
| + request->second.Run(maybe_entry->video_capture_device());
|
| photo_request_queue_.erase(request);
|
| }
|
| ++request;
|
|
|