mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1180403: P2. Prevent crash when shutting down. r=cpearce
This commit is contained in:
parent
641d20eb39
commit
ea747682af
@ -1438,7 +1438,8 @@ void MediaFormatReader::ReleaseMediaResources()
|
||||
{
|
||||
// Before freeing a video codec, all video buffers needed to be released
|
||||
// even from graphics pipeline.
|
||||
VideoFrameContainer* container = mDecoder->GetVideoFrameContainer();
|
||||
VideoFrameContainer* container =
|
||||
mDecoder ? mDecoder->GetVideoFrameContainer() : nullptr;
|
||||
if (container) {
|
||||
container->ClearCurrentFrame();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user