bug 1139874 check for shutdown before asking the reader for buffered r=bholley

--HG--
extra : rebase_source : cbc7f06a89dfbaf22eb590c51ba709a4757296d0
This commit is contained in:
Karl Tomlinson 2015-03-10 09:53:31 +13:00
parent 92e596d9b6
commit 96611b45a9

View File

@ -1609,7 +1609,7 @@ void MediaDecoder::Invalidate()
// Constructs the time ranges representing what segments of the media
// are buffered and playable.
nsresult MediaDecoder::GetBuffered(dom::TimeRanges* aBuffered) {
NS_ENSURE_TRUE(mDecoderStateMachine, NS_ERROR_FAILURE);
NS_ENSURE_TRUE(mDecoderStateMachine && !mShuttingDown, NS_ERROR_FAILURE);
return mDecoderStateMachine->GetBuffered(aBuffered);
}