OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "media/video/capture/linux/video_capture_device_linux.h" | 5 #include "media/video/capture/linux/video_capture_device_linux.h" |
6 | 6 |
7 #include <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
9 #if defined(OS_OPENBSD) | 9 #if defined(OS_OPENBSD) |
10 #include <sys/videoio.h> | 10 #include <sys/videoio.h> |
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 } | 496 } |
497 | 497 |
498 delete [] buffer_pool_; | 498 delete [] buffer_pool_; |
499 buffer_pool_ = NULL; | 499 buffer_pool_ = NULL; |
500 buffer_pool_size_ = 0; | 500 buffer_pool_size_ = 0; |
501 } | 501 } |
502 | 502 |
503 void VideoCaptureDeviceLinux::SetErrorState(const std::string& reason) { | 503 void VideoCaptureDeviceLinux::SetErrorState(const std::string& reason) { |
504 DCHECK(!v4l2_thread_.IsRunning() || | 504 DCHECK(!v4l2_thread_.IsRunning() || |
505 v4l2_thread_.message_loop() == base::MessageLoop::current()); | 505 v4l2_thread_.message_loop() == base::MessageLoop::current()); |
506 DVLOG(1) << reason; | |
507 state_ = kError; | 506 state_ = kError; |
508 client_->OnError(reason); | 507 client_->OnError(reason); |
509 } | 508 } |
510 | 509 |
511 } // namespace media | 510 } // namespace media |
OLD | NEW |