mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1116626 - Null check mDecoder in AutoNotifyDecoded since it might have been shutdown already. r=karlt
This commit is contained in:
parent
94b8f7e852
commit
ec6db05d59
@ -143,7 +143,9 @@ public:
|
||||
AutoNotifyDecoded(AbstractMediaDecoder* aDecoder, uint32_t& aParsed, uint32_t& aDecoded)
|
||||
: mDecoder(aDecoder), mParsed(aParsed), mDecoded(aDecoded) {}
|
||||
~AutoNotifyDecoded() {
|
||||
mDecoder->NotifyDecodedFrames(mParsed, mDecoded);
|
||||
if (mDecoder) {
|
||||
mDecoder->NotifyDecodedFrames(mParsed, mDecoded);
|
||||
}
|
||||
}
|
||||
private:
|
||||
AbstractMediaDecoder* mDecoder;
|
||||
|
Loading…
Reference in New Issue
Block a user