Index: content/renderer/pepper/pepper_video_capture_host.cc |
diff --git a/content/renderer/pepper/pepper_video_capture_host.cc b/content/renderer/pepper/pepper_video_capture_host.cc |
index de3642caa46cd6392d23605c254dae8b4faa2831..e2951c190726b927fd1b57fb6fcc7ca585b4104b 100644 |
--- a/content/renderer/pepper/pepper_video_capture_host.cc |
+++ b/content/renderer/pepper/pepper_video_capture_host.cc |
@@ -250,7 +250,7 @@ int32_t PepperVideoCaptureHost::OnOpen( |
const std::string& device_id, |
const PP_VideoCaptureDeviceInfo_Dev& requested_info, |
uint32_t buffer_count) { |
- if (platform_video_capture_) |
+ if (platform_video_capture_.get()) |
return PP_ERROR_FAILED; |
webkit::ppapi::PluginDelegate* plugin_delegate = GetPluginDelegate(); |
@@ -322,7 +322,7 @@ int32_t PepperVideoCaptureHost::StopCapture() { |
} |
int32_t PepperVideoCaptureHost::Close() { |
- if (!platform_video_capture_) |
+ if (!platform_video_capture_.get()) |
return PP_OK; |
StopCapture(); |
@@ -360,7 +360,7 @@ void PepperVideoCaptureHost::SetRequestedInfo( |
} |
void PepperVideoCaptureHost::DetachPlatformVideoCapture() { |
- if (platform_video_capture_) { |
+ if (platform_video_capture_.get()) { |
platform_video_capture_->DetachEventHandler(); |
platform_video_capture_ = NULL; |
} |