зеркало из https://github.com/mozilla/gecko-dev.git
Bug 567077 - Fix an assertion failure when the decoder was cloned. r=cpearce
This commit is contained in:
Родитель
886438d841
Коммит
8184d80a9a
|
@ -1041,6 +1041,11 @@ nsresult nsHTMLMediaElement::LoadResource()
|
|||
if (other) {
|
||||
// Clone it.
|
||||
nsresult rv = InitializeDecoderAsClone(other->mDecoder);
|
||||
// Get the mimetype from the element we clone, since we will not get it via
|
||||
// the channel, and we won't be able to sniff for it, because we will not
|
||||
// open a channel to get the beginning of the media (it is likely to already
|
||||
// be in the cache).
|
||||
mMimeType = other->mMimeType;
|
||||
if (NS_SUCCEEDED(rv))
|
||||
return rv;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче