Merge autoland to m-c. a=merge
This commit is contained in:
@@ -4707,7 +4707,9 @@ HTMLMediaElement::UpdateReadyStateInternal()
|
||||
}
|
||||
|
||||
enum NextFrameStatus nextFrameStatus = NextFrameStatus();
|
||||
if (nextFrameStatus == NEXT_FRAME_UNAVAILABLE) {
|
||||
if (nextFrameStatus == NEXT_FRAME_UNAVAILABLE ||
|
||||
(nextFrameStatus == NEXT_FRAME_UNAVAILABLE_BUFFERING &&
|
||||
mWaitingForKey == WAITING_FOR_KEY)) {
|
||||
if (mWaitingForKey != NOT_WAITING_FOR_KEY) {
|
||||
// http://w3c.github.io/encrypted-media/#wait-for-key
|
||||
// Continuing 7.3.4 Queue a "waitingforkey" Event
|
||||
@@ -4796,7 +4798,7 @@ HTMLMediaElement::UpdateReadyStateInternal()
|
||||
// autoplay elements for live streams will never play. Otherwise we
|
||||
// move to HAVE_ENOUGH_DATA if we can play through the entire media
|
||||
// without stopping to buffer.
|
||||
if (mDecoder->CanPlayThrough()) {
|
||||
if (mWaitingForKey == NOT_WAITING_FOR_KEY && mDecoder->CanPlayThrough()) {
|
||||
LOG(LogLevel::Debug, ("MediaElement %p UpdateReadyStateInternal() "
|
||||
"Decoder can play through", this));
|
||||
ChangeReadyState(nsIDOMHTMLMediaElement::HAVE_ENOUGH_DATA);
|
||||
|
||||
Reference in New Issue
Block a user