Bug 1310140. Part 5 - add DecodingFirstFrameState::HandleVideoSuspendTimeout(). r=kaku,kamidphish

MozReview-Commit-ID: 9CAE5XOQFtQ

--HG--
extra : rebase_source : a4f227c1d3eb6e1e2fe1a353e565ea06447faea4
extra : source : ffe3c6d1e9dd68835cacd0f56ae0bf461f1e843c
This commit is contained in:
JW Wang 2016-10-18 10:40:52 +08:00
parent c74a365db4
commit 18399ecab8

View File

@ -447,6 +447,11 @@ public:
RefPtr<MediaDecoder::SeekPromise> HandleSeek(SeekTarget aTarget) override;
void HandleVideoSuspendTimeout() override
{
// Do nothing for we need to decode the 1st video frame to get the dimensions.
}
private:
// Notify FirstFrameLoaded if having decoded first frames and
// transition to SEEKING if there is any pending seek, or DECODING otherwise.