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/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
325 // fail with HRESULT_FROM_WINHRESULT_FROM_WIN32(ERROR_INVALID_FUNCTION). | 325 // fail with HRESULT_FROM_WINHRESULT_FROM_WIN32(ERROR_INVALID_FUNCTION). |
326 // It's not clear to me why this is, but it is possible that it has | 326 // It's not clear to me why this is, but it is possible that it has |
327 // something to do with this bug: | 327 // something to do with this bug: |
328 // http://support.microsoft.com/kb/979567 | 328 // http://support.microsoft.com/kb/979567 |
329 OnError(hr); | 329 OnError(hr); |
330 } | 330 } |
331 } | 331 } |
332 } | 332 } |
333 | 333 |
334 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { | 334 void VideoCaptureDeviceMFWin::OnError(HRESULT hr) { |
335 std::string log_msg = base::StringPrintf("VideoCaptureDeviceMFWin: %x", hr); | 335 const std::string reason = |
tommi (sloooow) - chröme
2014/08/28 08:48:46
move this variable into the scope below.
(alternat
| |
336 DLOG(ERROR) << log_msg; | 336 base::StringPrintf("VideoCaptureDeviceMFWin: %x", hr); |
337 if (client_.get()) | 337 if (client_.get()) |
338 client_->OnError(log_msg); | 338 client_->OnError(reason); |
339 } | 339 } |
340 | 340 |
341 } // namespace media | 341 } // namespace media |
OLD | NEW |