зеркало из https://github.com/mozilla/gecko-dev.git
Bug 514573 - Free video data after paint, prevents repainting. r=doublec
This commit is contained in:
Родитель
8d783e47e7
Коммит
9f3d1f4e1a
|
@ -154,9 +154,13 @@ public:
|
|||
~FrameData()
|
||||
{
|
||||
MOZ_COUNT_DTOR(FrameData);
|
||||
ClearVideoHeader();
|
||||
}
|
||||
|
||||
void ClearVideoHeader() {
|
||||
if (mVideoHeader) {
|
||||
oggplay_callback_info_unlock_item(mVideoHeader);
|
||||
mVideoHeader = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -997,6 +1001,9 @@ void nsOggDecodeStateMachine::PlayVideo(FrameData* aFrame)
|
|||
|
||||
mDecoder->SetRGBData(aFrame->mVideoWidth, aFrame->mVideoHeight,
|
||||
mFramerate, mAspectRatio, buffer.forget());
|
||||
|
||||
// Don't play the frame's video data more than once.
|
||||
aFrame->ClearVideoHeader();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче