Bug 1297265: P2. Amend MediaDataDecoder documentation to emphasize the new expected behavior. r?kamidphish
MozReview-Commit-ID: EHFnCnc58qh
--- a/dom/media/platforms/PlatformDecoderModule.h
+++ b/dom/media/platforms/PlatformDecoderModule.h
@@ -170,16 +170,18 @@ public:
virtual void Output(MediaData* aData) = 0;
// Denotes an error in the decoding process. The reader will stop calling
// the decoder.
virtual void Error(MediaDataDecoderError aError) = 0;
// Denotes that the last input sample has been inserted into the decoder,
// and no more output can be produced unless more input is sent.
+ // InputExhausted should only be called if no decoded samples were returned
+ // from the last input.
virtual void InputExhausted() = 0;
virtual void DrainComplete() = 0;
virtual void ReleaseMediaResources() {}
virtual bool OnReaderTaskQueue() = 0;