Bug 774084 - Fix a crash in nsBuiltinDecoder::GetSeekable. r=kinetik

--HG--
extra : rebase_source : f05e051cc9ab850381d138e944f2cc3ea5b3e2f7
This commit is contained in:
Paul Adenot 2012-07-15 10:57:41 -07:00
parent 9237dae01b
commit a9f1585235

@ -957,7 +957,7 @@ nsresult nsBuiltinDecoder::GetSeekable(nsTimeRanges* aSeekable)
return NS_OK;
}
if (mDecoderStateMachine->IsSeekableInBufferedRanges()) {
if (mDecoderStateMachine && mDecoderStateMachine->IsSeekableInBufferedRanges()) {
return GetBuffered(aSeekable);
} else {
// The stream is not seekable using only buffered ranges, and is not