Backed out changeset 25bff27f9944 (bug 1496281) requested for causing bug1498953 CLOSED TREE

This commit is contained in:
Ciure Andrei 2018-10-15 21:47:32 +03:00
Родитель a31bb4e851
Коммит 14f664ea99
1 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@ -76,11 +76,6 @@ AudioSink::Init(const PlaybackParams& aParams, RefPtr<GenericPromise>& aEndPromi
{
MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn());
if (mAudioQueue.IsFinished()) {
aEndPromise = GenericPromise::CreateAndResolve(true, __func__);
return NS_OK;
}
mAudioQueueListener = mAudioQueue.PushEvent().Connect(
mOwnerThread, this, &AudioSink::OnAudioPushed);
mAudioQueueFinishListener = mAudioQueue.FinishEvent().Connect(
@ -136,9 +131,9 @@ AudioSink::Shutdown()
{
MOZ_ASSERT(mOwnerThread->IsCurrentThreadIn());
mAudioQueueListener.DisconnectIfExists();
mAudioQueueFinishListener.DisconnectIfExists();
mProcessedQueueListener.DisconnectIfExists();
mAudioQueueListener.Disconnect();
mAudioQueueFinishListener.Disconnect();
mProcessedQueueListener.Disconnect();
if (mAudioStream) {
mAudioStream->Shutdown();