зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1308078. Part 2 - no need to store mQueuedSeek in WaitForCDMState::HandleDormant. r=kaku
Because we haven't decoded any data and are at position 0, there is no need to seek when exiting the dormant state. MozReview-Commit-ID: AKAcqW3HfRN --HG-- extra : rebase_source : 45056ef8a67a2869b90ea3b1ab842bfca310b9aa extra : source : 2dc17c8ca765eee1d05956b087804bb760af0e48
This commit is contained in:
Родитель
5e39aa3292
Коммит
b68b2a7505
|
@ -379,6 +379,15 @@ public:
|
|||
return DECODER_STATE_WAIT_FOR_CDM;
|
||||
}
|
||||
|
||||
bool HandleDormant(bool aDormant) override
|
||||
{
|
||||
if (aDormant) {
|
||||
// No need to store mQueuedSeek because we are at position 0.
|
||||
SetState(DECODER_STATE_DORMANT);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
bool HandleCDMProxyReady() override
|
||||
{
|
||||
SetState(DECODER_STATE_DECODING_FIRSTFRAME);
|
||||
|
|
Загрузка…
Ссылка в новой задаче