зеркало из https://github.com/mozilla/pjs.git
Bug 700555 - Add null check in nsBuiltinDecoder::NotifyDataArrived. r=doublec
This commit is contained in:
Родитель
13809208a1
Коммит
2a0284468b
|
@ -501,7 +501,9 @@ class nsBuiltinDecoder : public nsMediaDecoder
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void NotifyDataArrived(const char* aBuffer, PRUint32 aLength, PRUint32 aOffset) {
|
virtual void NotifyDataArrived(const char* aBuffer, PRUint32 aLength, PRUint32 aOffset) {
|
||||||
return mDecoderStateMachine->NotifyDataArrived(aBuffer, aLength, aOffset);
|
if (mDecoderStateMachine) {
|
||||||
|
mDecoderStateMachine->NotifyDataArrived(aBuffer, aLength, aOffset);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Sets the length of the framebuffer used in MozAudioAvailable events.
|
// Sets the length of the framebuffer used in MozAudioAvailable events.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче