Index: media/video/capture/linux/video_capture_device_linux.cc |
=================================================================== |
--- media/video/capture/linux/video_capture_device_linux.cc (revision 105502) |
+++ 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); |
perkj_chrome
2011/10/17 08:39:43
What is the purpose of this? Is it possible to avo
wjia(left Chromium)
2011/10/21 00:56:13
I am trying to handle the case where observer_ (i.
perkj_chrome
2011/10/21 14:54:00
We had previously solved this in another way.
Also
wjia(left Chromium)
2011/10/21 23:54:16
Could you clarify it's VideoCapture::StopCapture o
|
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) { |