mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
Bug 514573 - Free video data after paint, prevents repainting. r=doublec
This commit is contained in:
parent
8d783e47e7
commit
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();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user