Bug 1733109 - narrowing conversion from 'double' to 'float' in HTMLMediaElement.cpp. r=alwu

Depends on D126945

Differential Revision: https://phabricator.services.mozilla.com/D126946
This commit is contained in:
Paul Adenot 2021-09-30 12:36:18 +00:00
Родитель f3cd1e466b
Коммит 477acd5f27
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -7155,7 +7155,7 @@ void HTMLMediaElement::SetDecoder(MediaDecoder* aDecoder) {
float HTMLMediaElement::ComputedVolume() const {
return mMuted ? 0.0f
: mAudioChannelWrapper ? mAudioChannelWrapper->GetEffectiveVolume()
: mVolume;
: static_cast<float>(mVolume);
}
bool HTMLMediaElement::ComputedMuted() const {