Index: content/browser/renderer_host/media/video_capture_controller.cc |
diff --git a/content/browser/renderer_host/media/video_capture_controller.cc b/content/browser/renderer_host/media/video_capture_controller.cc |
index b82b7969ca7b13a82c258f36b5cdabcbdd30fc39..05f5c8c2ffa08b1b15b5f1efbe42c6b7dbdd6fb3 100644 |
--- a/content/browser/renderer_host/media/video_capture_controller.cc |
+++ b/content/browser/renderer_host/media/video_capture_controller.cc |
@@ -655,7 +655,8 @@ void VideoCaptureController::PostStopping() { |
// When clients still have some buffers, or device has not been stopped yet, |
// do nothing. |
- if (buffer_pool_->IsAnyBufferHeldForConsumers() || device_in_use_) |
+ if ((buffer_pool_ && buffer_pool_->IsAnyBufferHeldForConsumers()) || |
wjia(left Chromium)
2013/05/16 00:14:16
Should this check be also added for other cases (w
ncarter (slow)
2013/05/16 00:32:31
It wouldn't hurt, but it's certainly not necessary
|
+ device_in_use_) |
return; |
{ |