Bug 1221881 - HTMLMediaElement::NetworkError() should clear mDecoder. See bug 1221881 comment 2 for the root cause. r=cpearce.

This commit is contained in:
JW Wang
2015-11-11 15:18:11 +08:00
parent 3b81646d18
commit 2da30fff44

View File

@@ -3469,6 +3469,9 @@ void HTMLMediaElement::FirstFrameLoaded()
void HTMLMediaElement::NetworkError()
{
if (mDecoder) {
ShutdownDecoder();
}
Error(nsIDOMMediaError::MEDIA_ERR_NETWORK);
}