Chromium Code Reviews| Index: media/mpeg2/mpeg2ts_common.h |
| diff --git a/media/mpeg2/mpeg2ts_common.h b/media/mpeg2/mpeg2ts_common.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b7feb29a6370349f49ce06cc112759019430f12c |
| --- /dev/null |
| +++ b/media/mpeg2/mpeg2ts_common.h |
| @@ -0,0 +1,20 @@ |
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_MPEG2_MPEG2TS_COMMON_H_ |
| +#define MEDIA_MPEG2_MPEG2TS_COMMON_H_ |
| + |
| +#define LOG_LEVEL_TS 5 |
| +#define LOG_LEVEL_PES 4 |
| +#define LOG_LEVEL_ES 3 |
| + |
| +#define RCHECK(x) \ |
| + do { \ |
| + if (!(x)) { \ |
| + LOG(WARNING) << "Failure while parsing Mpeg2TS: " << #x; \ |
|
acolwell GONE FROM CHROMIUM
2013/09/05 18:29:10
nit: use DVLOG
damienv1
2013/09/09 23:29:45
Use DLOG(WARNING) instead.
|
| + return false; \ |
| + } \ |
| + } while (0) |
| + |
| +#endif |