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

Side by Side Diff: media/video/capture/linux/video_capture_device_linux.cc

Issue 489183003: Log error messages in windows video capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: syntax error : missing ')' Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698