From 5d8728423441575dc81c6c38de69fbc7ca35f163 Mon Sep 17 00:00:00 2001 From: Jean-Yves Avenard Date: Tue, 15 Sep 2015 15:36:22 +1000 Subject: [PATCH] Bug 1204776: P4. Have VPX/Opus/Vorbis decoder use PlatformDecoderModule log. r=cpearce --- dom/media/platforms/agnostic/OpusDecoder.cpp | 5 ++--- dom/media/platforms/agnostic/VPXDecoder.cpp | 5 ++--- dom/media/platforms/agnostic/VorbisDecoder.cpp | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/dom/media/platforms/agnostic/OpusDecoder.cpp b/dom/media/platforms/agnostic/OpusDecoder.cpp index 65fd613d812d..4ca4cc285382 100644 --- a/dom/media/platforms/agnostic/OpusDecoder.cpp +++ b/dom/media/platforms/agnostic/OpusDecoder.cpp @@ -12,13 +12,12 @@ #include #include // 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) diff --git a/dom/media/platforms/agnostic/VPXDecoder.cpp b/dom/media/platforms/agnostic/VPXDecoder.cpp index a89d7010679c..b65130e0cb8d 100644 --- a/dom/media/platforms/agnostic/VPXDecoder.cpp +++ b/dom/media/platforms/agnostic/VPXDecoder.cpp @@ -13,15 +13,14 @@ #include #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, diff --git a/dom/media/platforms/agnostic/VorbisDecoder.cpp b/dom/media/platforms/agnostic/VorbisDecoder.cpp index 08522dcf7a27..0dd4e9a46428 100644 --- a/dom/media/platforms/agnostic/VorbisDecoder.cpp +++ b/dom/media/platforms/agnostic/VorbisDecoder.cpp @@ -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)