diff --git a/content/media/nsBuiltinDecoder.h b/content/media/nsBuiltinDecoder.h index fcfe08180d2..03cd8c8b316 100644 --- a/content/media/nsBuiltinDecoder.h +++ b/content/media/nsBuiltinDecoder.h @@ -501,7 +501,9 @@ class nsBuiltinDecoder : public nsMediaDecoder } 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.