Bug 844563 - Crash [@ mozilla::MediaDecoder::SetPreservesPitch]. r=kinetik

This commit is contained in:
Paul Adenot 2013-02-26 09:51:59 +01:00
parent 1aab17ac00
commit a123bbbf99

View File

@ -3581,7 +3581,9 @@ NS_IMETHODIMP nsHTMLMediaElement::GetMozPreservesPitch(bool* aPreservesPitch)
NS_IMETHODIMP nsHTMLMediaElement::SetMozPreservesPitch(bool aPreservesPitch)
{
mPreservesPitch = aPreservesPitch;
mDecoder->SetPreservesPitch(aPreservesPitch);
if (mDecoder) {
mDecoder->SetPreservesPitch(mPreservesPitch);
}
return NS_OK;
}