mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
bug 1139874 check for shutdown before asking the reader for buffered r=bholley
--HG-- extra : rebase_source : cbc7f06a89dfbaf22eb590c51ba709a4757296d0
This commit is contained in:
parent
92e596d9b6
commit
96611b45a9
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user