зеркало из https://github.com/mozilla/gecko-dev.git
Bug 645593 - Null check mAudioStream before use in PlaySilence. r=cpearce
This commit is contained in:
Родитель
8c92942a6f
Коммит
b267b9a24b
|
@ -597,7 +597,7 @@ PRUint32 nsBuiltinDecoderStateMachine::PlaySilence(PRUint32 aSamples,
|
||||||
|
|
||||||
{
|
{
|
||||||
MonitorAutoEnter audioMon(mAudioMonitor);
|
MonitorAutoEnter audioMon(mAudioMonitor);
|
||||||
if (mAudioStream->IsPaused()) {
|
if (!mAudioStream || mAudioStream->IsPaused()) {
|
||||||
// The state machine has paused since we've released the decoder
|
// The state machine has paused since we've released the decoder
|
||||||
// monitor and acquired the audio monitor. Don't write any audio.
|
// monitor and acquired the audio monitor. Don't write any audio.
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче