| 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/win/video_capture_device_mf_win.h" | 5 #include "media/video/capture/win/video_capture_device_mf_win.h" |
| 6 | 6 |
| 7 #include <mfapi.h> | 7 #include <mfapi.h> |
| 8 #include <mferror.h> | 8 #include <mferror.h> |
| 9 | 9 |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/strings/sys_string_conversions.h" |
| 12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/sys_string_conversions.h" | |
| 14 #include "base/win/scoped_co_mem.h" | 14 #include "base/win/scoped_co_mem.h" |
| 15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
| 16 #include "media/video/capture/win/capability_list_win.h" | 16 #include "media/video/capture/win/capability_list_win.h" |
| 17 | 17 |
| 18 using base::win::ScopedCoMem; | 18 using base::win::ScopedCoMem; |
| 19 using base::win::ScopedComPtr; | 19 using base::win::ScopedComPtr; |
| 20 | 20 |
| 21 namespace media { | 21 namespace media { |
| 22 namespace { | 22 namespace { |
| 23 | 23 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 } | 424 } |
| 425 } | 425 } |
| 426 | 426 |
| 427 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { | 427 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { |
| 428 DLOG(ERROR) << "VideoCaptureDeviceMFWin: " << std::hex << hr; | 428 DLOG(ERROR) << "VideoCaptureDeviceMFWin: " << std::hex << hr; |
| 429 if (observer_) | 429 if (observer_) |
| 430 observer_->OnError(); | 430 observer_->OnError(); |
| 431 } | 431 } |
| 432 | 432 |
| 433 } // namespace media | 433 } // namespace media |
| OLD | NEW |