Bug 1495064 - part2 : don't request wakelock for video without audio track. r=jya
There are often websites using videos without an audio track as background image or as GIF-like image. For these cases, we don't want to hold a wakelock. Differential Revision: https://phabricator.services.mozilla.com/D7215
This commit is contained in:
@@ -7763,6 +7763,7 @@ HTMLMediaElement::SetMediaInfo(const MediaInfo& aInfo)
|
||||
if (mAudioChannelWrapper) {
|
||||
mAudioChannelWrapper->AudioCaptureStreamChangeIfNeeded();
|
||||
}
|
||||
UpdateWakeLock();
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user