Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Unified Diff: media/capture/video/video_capture_device_client.cc

Issue 2824883005: [Mojo Video Capture] Stop service when last client disconnects. (Closed)
Patch Set: Incorporate suggestions from PatchSet #4 Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/capture/video/video_capture_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/video_capture_device_client.cc
diff --git a/media/capture/video/video_capture_device_client.cc b/media/capture/video/video_capture_device_client.cc
index 8d95f3da6f05cfdd3992be1dbeb2da8bcb5faba1..89c3a8d6d807271cfa0736c69a4f943231bef62e 100644
--- a/media/capture/video/video_capture_device_client.cc
+++ b/media/capture/video/video_capture_device_client.cc
@@ -151,7 +151,8 @@ void VideoCaptureDeviceClient::OnIncomingCapturedData(
!external_jpeg_decoder_initialized_) {
external_jpeg_decoder_initialized_ = true;
external_jpeg_decoder_ = jpeg_decoder_factory_callback_.Run();
- external_jpeg_decoder_->Initialize();
+ if (external_jpeg_decoder_)
+ external_jpeg_decoder_->Initialize();
}
}
« no previous file with comments | « no previous file | media/capture/video/video_capture_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698