diff --git a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp b/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp index b38659abcdd1..ce275337107a 100644 --- a/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp +++ b/dom/media/platforms/agnostic/AgnosticDecoderModule.cpp @@ -59,9 +59,7 @@ AgnosticDecoderModule::CreateAudioDecoder(const AudioInfo& aConfig, aAudioTaskQueue, aCallback); } else if (WaveDataDecoder::IsWave(aConfig.mMimeType)) { - m = new WaveDataDecoder(*aConfig.GetAsAudioInfo(), - aAudioTaskQueue, - aCallback); + m = new WaveDataDecoder(*aConfig.GetAsAudioInfo(), aCallback); } return m.forget(); diff --git a/dom/media/platforms/agnostic/WAVDecoder.cpp b/dom/media/platforms/agnostic/WAVDecoder.cpp index c4f127690ae9..855dda39d1ae 100644 --- a/dom/media/platforms/agnostic/WAVDecoder.cpp +++ b/dom/media/platforms/agnostic/WAVDecoder.cpp @@ -47,12 +47,9 @@ DecodeULawSample(uint8_t aValue) } WaveDataDecoder::WaveDataDecoder(const AudioInfo& aConfig, - TaskQueue* aTaskQueue, MediaDataDecoderCallback* aCallback) : mInfo(aConfig) - , mTaskQueue(aTaskQueue) , mCallback(aCallback) - , mIsFlushing(false) { } diff --git a/dom/media/platforms/agnostic/WAVDecoder.h b/dom/media/platforms/agnostic/WAVDecoder.h index 0eb29706dfcc..6e1b2d044bc1 100644 --- a/dom/media/platforms/agnostic/WAVDecoder.h +++ b/dom/media/platforms/agnostic/WAVDecoder.h @@ -16,7 +16,6 @@ class WaveDataDecoder : public MediaDataDecoder { public: WaveDataDecoder(const AudioInfo& aConfig, - TaskQueue* aTaskQueue, MediaDataDecoderCallback* aCallback); // Return true if mimetype is Wave @@ -36,9 +35,7 @@ private: bool DoDecode(MediaRawData* aSample); const AudioInfo& mInfo; - const RefPtr mTaskQueue; MediaDataDecoderCallback* mCallback; - Atomic mIsFlushing; }; } // namespace mozilla