// Copyright (c) 2012 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS.  All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
#ifndef CLIENT_ENCODER_WIN_DSHOW_UTIL_H_
#define CLIENT_ENCODER_WIN_DSHOW_UTIL_H_

#include <ios>

#include "webmdshow/common/hrtext.hpp"
#include "webmdshow/common/odbgstream.hpp"

// Extracts error from the HRESULT, and outputs its hex and decimal values.
#define HRLOG(X) \
    " {" << #X << "=" << X << "/" << std::hex << X << std::dec << " (" << \
    hrtext(X) << ")}"

#endif  // CLIENT_ENCODER_WIN_DSHOW_UTIL_H_

// Copyright (c) 2012 The WebM project authors. All Rights Reserved.
//
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file in the root of the source
// tree. An additional intellectual property rights grant can be found
// in the file PATENTS.  All contributing project authors may
// be found in the AUTHORS file in the root of the source tree.
#ifndef CLIENT_ENCODER_WIN_DSHOW_UTIL_H_
#define CLIENT_ENCODER_WIN_DSHOW_UTIL_H_

#include <ios>

#include "webmdshow/common/odbgstream.hpp"  // NOLINT
// Above include NOLINT'd because it *must always* come before hrtext.
#include "webmdshow/common/hrtext.hpp"

// Extracts error from the HRESULT, and outputs its hex and decimal values.
#define HRLOG(X) \
    " {" << #X << "=" << X << "/" << std::hex << X << std::dec << " (" << \
    hrtext(X) << ")}"

#endif  // CLIENT_ENCODER_WIN_DSHOW_UTIL_H_

Fix release mode compile error.
Fix release mode compile error.

odbgstream must always be included before hrtext.

Change-Id: I184e8e9ec61c51b8f7e3f5d38135dfa85405d69e
