зеркало из https://github.com/mozilla/pjs.git
Bug 515546 - Null check mReader in nsOggDecoder::Shutdown. r=chris.double
--HG-- extra : rebase_source : e72005a765db36ed9b4cdd7d8717f6f923ce6b67
This commit is contained in:
Родитель
03c3afbcbd
Коммит
dc7f5d41c2
|
@ -1940,7 +1940,9 @@ void nsOggDecoder::Shutdown()
|
|||
|
||||
// Force any outstanding seek and byterange requests to complete
|
||||
// to prevent shutdown from deadlocking.
|
||||
mReader->Stream()->Close();
|
||||
if (mReader) {
|
||||
mReader->Stream()->Close();
|
||||
}
|
||||
|
||||
ChangeState(PLAY_STATE_SHUTDOWN);
|
||||
nsMediaDecoder::Shutdown();
|
||||
|
@ -2532,7 +2534,7 @@ void nsOggDecoder::StartProgressUpdates()
|
|||
|
||||
void nsOggDecoder::MoveLoadsToBackground()
|
||||
{
|
||||
if (mReader && mReader->Stream()) {
|
||||
if (mReader) {
|
||||
mReader->Stream()->MoveLoadsToBackground();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче