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

Unified Diff: media/video/capture/linux/video_capture_device_chromeos.cc

Issue 320483002: Check that capture_device_ is valid before setting the rotation on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/linux/video_capture_device_chromeos.cc
diff --git a/media/video/capture/linux/video_capture_device_chromeos.cc b/media/video/capture/linux/video_capture_device_chromeos.cc
index fd213e0a744103affe2ebb42885f755960764a93..d701077b41305a2399b8afd772d574178f6a4a41 100644
--- a/media/video/capture/linux/video_capture_device_chromeos.cc
+++ b/media/video/capture/linux/video_capture_device_chromeos.cc
@@ -82,7 +82,8 @@ class VideoCaptureDeviceChromeOS::ScreenObserverDelegate
void SendDisplayRotationOnCaptureThread(const gfx::Display& display) {
DCHECK(capture_task_runner_->BelongsToCurrentThread());
- capture_device_->SetDisplayRotation(display);
+ if (capture_device_)
+ capture_device_->SetDisplayRotation(display);
}
VideoCaptureDeviceChromeOS* capture_device_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698