| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef MEDIA_BASE_WIN_MF_HELPERS_H_ | 5 #ifndef MEDIA_BASE_WIN_MF_HELPERS_H_ |
| 6 #define MEDIA_BASE_WIN_MF_HELPERS_H_ | 6 #define MEDIA_BASE_WIN_MF_HELPERS_H_ |
| 7 | 7 |
| 8 #include <mfapi.h> | 8 #include <mfapi.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/win/scoped_comptr.h" | 11 #include "base/win/scoped_comptr.h" |
| 12 #include "media/base/win/mf_initializer_export.h" | 12 #include "media/base/win/mf_initializer_export.h" |
| 13 | 13 |
| 14 #undef DLOG |
| 15 #define DLOG(err) LOG(ERROR) |
| 16 #undef DVLOG |
| 17 #define DVLOG(err) LOG(ERROR) |
| 18 |
| 14 namespace media { | 19 namespace media { |
| 15 | 20 |
| 16 namespace mf { | 21 namespace mf { |
| 17 | 22 |
| 18 #define RETURN_ON_FAILURE(result, log, ret) \ | 23 #define RETURN_ON_FAILURE(result, log, ret) \ |
| 19 do { \ | 24 do { \ |
| 20 if (!(result)) { \ | 25 if (!(result)) { \ |
| 21 DLOG(ERROR) << log; \ | 26 DLOG(ERROR) << log; \ |
| 22 mf::LogDXVAError(__LINE__); \ | 27 mf::LogDXVAError(__LINE__); \ |
| 23 return ret; \ | 28 return ret; \ |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 DWORD current_length_; | 73 DWORD current_length_; |
| 69 | 74 |
| 70 DISALLOW_COPY_AND_ASSIGN(MediaBufferScopedPointer); | 75 DISALLOW_COPY_AND_ASSIGN(MediaBufferScopedPointer); |
| 71 }; | 76 }; |
| 72 | 77 |
| 73 } // namespace mf | 78 } // namespace mf |
| 74 | 79 |
| 75 } // namespace media | 80 } // namespace media |
| 76 | 81 |
| 77 #endif // MEDIA_BASE_WIN_MF_HELPERS_H_ | 82 #endif // MEDIA_BASE_WIN_MF_HELPERS_H_ |
| OLD | NEW |