Bug 1204776: P4. Have VPX/Opus/Vorbis decoder use PlatformDecoderModule log. r=cpearce

This commit is contained in:
Jean-Yves Avenard 2015-09-15 15:36:22 +10:00
parent 86e37be133
commit 5d87284234
3 changed files with 6 additions and 9 deletions

View File

@ -12,13 +12,12 @@
#include <stdint.h>
#include <inttypes.h> // For PRId64
#define OPUS_DEBUG(arg, ...) MOZ_LOG(gMediaDecoderLog, mozilla::LogLevel::Debug, \
extern PRLogModuleInfo* GetPDMLog();
#define OPUS_DEBUG(arg, ...) MOZ_LOG(GetPDMLog(), mozilla::LogLevel::Debug, \
("OpusDataDecoder(%p)::%s: " arg, this, __func__, ##__VA_ARGS__))
namespace mozilla {
extern PRLogModuleInfo* gMediaDecoderLog;
OpusDataDecoder::OpusDataDecoder(const AudioInfo& aConfig,
FlushableTaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback)

View File

@ -13,15 +13,14 @@
#include <algorithm>
#undef LOG
#define LOG(arg, ...) MOZ_LOG(gMediaDecoderLog, mozilla::LogLevel::Debug, ("VPXDecoder(%p)::%s: " arg, this, __func__, ##__VA_ARGS__))
extern PRLogModuleInfo* GetPDMLog();
#define LOG(arg, ...) MOZ_LOG(GetPDMLog(), mozilla::LogLevel::Debug, ("VPXDecoder(%p)::%s: " arg, this, __func__, ##__VA_ARGS__))
namespace mozilla {
using namespace gfx;
using namespace layers;
extern PRLogModuleInfo* gMediaDecoderLog;
VPXDecoder::VPXDecoder(const VideoInfo& aConfig,
ImageContainer* aImageContainer,
FlushableTaskQueue* aTaskQueue,

View File

@ -12,12 +12,11 @@
#include "nsAutoPtr.h"
#undef LOG
#define LOG(type, msg) MOZ_LOG(gMediaDecoderLog, type, msg)
extern PRLogModuleInfo* GetPDMLog();
#define LOG(type, msg) MOZ_LOG(GetPDMLog(), type, msg)
namespace mozilla {
extern PRLogModuleInfo* gMediaDecoderLog;
ogg_packet InitVorbisPacket(const unsigned char* aData, size_t aLength,
bool aBOS, bool aEOS,
int64_t aGranulepos, int64_t aPacketNo)