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

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

Issue 8304017: enable video capture to support sharing across multiple renderer processes (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
Index: media/video/capture/linux/video_capture_device_linux.cc
===================================================================
--- media/video/capture/linux/video_capture_device_linux.cc (revision 106642)
+++ media/video/capture/linux/video_capture_device_linux.cc (working copy)
@@ -192,6 +192,7 @@
DCHECK_EQ(v4l2_thread_.message_loop(), MessageLoop::current());
observer_ = observer;
+ observer_->OnDeviceState(true);
if ((device_fd_ = open(device_name_.unique_id.c_str(), O_RDONLY)) < 0) {
SetErrorState("Failed to open V4L2 device driver.");
@@ -442,6 +443,7 @@
delete [] buffer_pool_;
buffer_pool_ = NULL;
buffer_pool_size_ = 0;
+ observer_->OnDeviceState(false);
}
void VideoCaptureDeviceLinux::SetErrorState(const std::string& reason) {

Powered by Google App Engine
This is Rietveld 408576698