Bug 827961: Add explicit parens around condition in nsHTMLMediaElement::UpdateAudioChannelPlayingState(), to fix build warning (treated as error in warnings-as-errors builds). r=roc

This commit is contained in:
Daniel Holbert 2013-01-08 15:57:28 -08:00
parent ea4db7d7f9
commit e12a3d9080

View File

@ -3572,8 +3572,8 @@ void nsHTMLMediaElement::UpdateAudioChannelPlayingState()
bool playingThroughTheAudioChannel =
(!mPaused &&
(HasAttr(kNameSpaceID_None, nsGkAtoms::loop) ||
mReadyState >= nsIDOMHTMLMediaElement::HAVE_CURRENT_DATA &&
!IsPlaybackEnded()));
(mReadyState >= nsIDOMHTMLMediaElement::HAVE_CURRENT_DATA &&
!IsPlaybackEnded())));
if (playingThroughTheAudioChannel != mPlayingThroughTheAudioChannel) {
mPlayingThroughTheAudioChannel = playingThroughTheAudioChannel;