Bug 1273390. Part 5 - remove use of FlushableTaskQueue. r=jya.
MozReview-Commit-ID: TYbvfH5gp7
--- a/dom/media/platforms/agnostic/WAVDecoder.cpp
+++ b/dom/media/platforms/agnostic/WAVDecoder.cpp
@@ -42,17 +42,17 @@ DecodeULawSample(uint8_t aValue)
int8_t sign = (aValue & 0x80) ? -1 : 1;
uint8_t exponent = (aValue & 0x70) >> 4;
uint8_t mantissa = aValue & 0x0F;
int16_t sample = (33 + 2 * mantissa) * (2 << (exponent + 1)) - 33;
return sign * sample;
}
WaveDataDecoder::WaveDataDecoder(const AudioInfo& aConfig,
- FlushableTaskQueue* aTaskQueue,
+ TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback)
: mInfo(aConfig)
, mTaskQueue(aTaskQueue)
, mCallback(aCallback)
, mIsFlushing(false)
, mFrames(0)
{
}
--- a/dom/media/platforms/agnostic/WAVDecoder.h
+++ b/dom/media/platforms/agnostic/WAVDecoder.h
@@ -11,17 +11,17 @@
#include "mp4_demuxer/ByteReader.h"
namespace mozilla {
class WaveDataDecoder : public MediaDataDecoder
{
public:
WaveDataDecoder(const AudioInfo& aConfig,
- FlushableTaskQueue* aTaskQueue,
+ TaskQueue* aTaskQueue,
MediaDataDecoderCallback* aCallback);
// Return true if mimetype is Wave
static bool IsWave(const nsACString& aMimeType);
private:
RefPtr<InitPromise> Init() override;
nsresult Input(MediaRawData* aSample) override;
@@ -33,17 +33,17 @@ private:
return "wave audio decoder";
}
void ProcessDecode(MediaRawData* aSample);
bool DoDecode(MediaRawData* aSample);
void ProcessDrain();
const AudioInfo& mInfo;
- RefPtr<FlushableTaskQueue> mTaskQueue;
+ const RefPtr<TaskQueue> mTaskQueue;
MediaDataDecoderCallback* mCallback;
Atomic<bool> mIsFlushing;
int64_t mFrames;
};
} // namespace mozilla
#endif