Get the udc-widevine-dev Android branch and oemcrypto-v18 cdm branch in sync. The commit ID for 18.4 on oemcrypto-v18 is a2f23a2281e5e06dc2867585bdc516fa132b6396. Merged from go/wvgerrit/190151 Bug: 290252845 Test: WVTS tests are running and passing Change-Id: I457332e7ca70a5b5169345e1279b3eb9f18413b6
29 lines
771 B
C++
29 lines
771 B
C++
// Copyright 2023 Google LLC. All Rights Reserved. This file and proprietary
|
|
// source code may only be used and distributed under the Widevine License
|
|
// Agreement.
|
|
//
|
|
// You can use this implementation of ILogger when calling Cdm::initialize() in
|
|
// order to log all messages to stderr. This preserves the behavior of past CE
|
|
// CDM releases.
|
|
#ifndef WVCDM_CDM_STDERR_LOGGER_H_
|
|
#define WVCDM_CDM_STDERR_LOGGER_H_
|
|
|
|
#include <iostream>
|
|
#include <string>
|
|
|
|
#include "cdm.h"
|
|
|
|
namespace widevine {
|
|
class StderrLogger : public Cdm::ILogger {
|
|
public:
|
|
StderrLogger() {}
|
|
~StderrLogger() override {}
|
|
|
|
void log(const std::string& message) override {
|
|
std::cerr << message << std::endl << std::flush;
|
|
}
|
|
};
|
|
} // namespace widevine
|
|
|
|
#endif // WVCDM_CDM_STDERR_LOGGER_H_
|