Skip to content

Commit

Permalink
bug 1404220 reset mBufferFormat (and mVolume) when resetting mSharedC…
Browse files Browse the repository at this point in the history
…hannels r=padenot

MozReview-Commit-ID: BP4fJLarEyE

--HG--
extra : rebase_source : 3d1e7550267c4e284aafb869015f63ae3d918e51
  • Loading branch information
karlt committed Oct 9, 2017
1 parent f3b25c6 commit 03ead4b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dom/media/webaudio/AudioBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,7 @@ AudioBuffer::RestoreJSChannelData(JSContext* aJSContext)
mJSChannels[i] = array;
}

mSharedChannels.mBuffer = nullptr;
mSharedChannels.mChannelData.Clear();
mSharedChannels.SetNull(Length());

return true;
}
Expand Down

0 comments on commit 03ead4b

Please sign in to comment.