Index: chrome/browser/renderer_host/audio_renderer_host.cc |
=================================================================== |
--- chrome/browser/renderer_host/audio_renderer_host.cc (revision 70986) |
+++ chrome/browser/renderer_host/audio_renderer_host.cc (working copy) |
@@ -460,7 +460,7 @@ |
AudioEntryMap::iterator i = audio_entries_.find( |
AudioEntryId(route_id, stream_id)); |
- if (i != audio_entries_.end()) |
+ if (i != audio_entries_.end() && !i->second->pending_close) |
return i->second; |
return NULL; |
} |
@@ -473,7 +473,7 @@ |
// TODO(hclam): Implement a faster look up method. |
for (AudioEntryMap::iterator i = audio_entries_.begin(); |
i != audio_entries_.end(); ++i) { |
- if (controller == i->second->controller.get()) |
+ if (!i->second->pending_close && controller == i->second->controller.get()) |
return i->second; |
} |
return NULL; |