Backed out changeset 44f27b3c35d4 (bug 1065827)
This commit is contained in:
@@ -2903,11 +2903,11 @@ void HTMLMediaElement::MetadataLoaded(const MediaInfo* aInfo,
|
||||
// If this element had a video track, but consists only of an audio track now,
|
||||
// delete the VideoFrameContainer. This happens when the src is changed to an
|
||||
// audio only file.
|
||||
// Else update its dimensions.
|
||||
if (!aInfo->HasVideo()) {
|
||||
ResetState();
|
||||
} else {
|
||||
UpdateMediaSize(aInfo->mVideo.mDisplay);
|
||||
if (!aInfo->HasVideo() && mVideoFrameContainer) {
|
||||
// call ForgetElement() such that callbacks from |mVideoFrameContainer|
|
||||
// won't reach us anymore.
|
||||
mVideoFrameContainer->ForgetElement();
|
||||
mVideoFrameContainer = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user