mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-02 22:37:50 +00:00
Backed out changeset 24c0074052e6 (bug 1224936) for incoming mulet bustage
--HG-- extra : commitid : CTB4L0oz2Q5
This commit is contained in:
parent
78387921a4
commit
30cc866544
@ -786,7 +786,6 @@ void HTMLMediaElement::NoSupportedMediaSourceError()
|
|||||||
ChangeNetworkState(nsIDOMHTMLMediaElement::NETWORK_NO_SOURCE);
|
ChangeNetworkState(nsIDOMHTMLMediaElement::NETWORK_NO_SOURCE);
|
||||||
DispatchAsyncEvent(NS_LITERAL_STRING("error"));
|
DispatchAsyncEvent(NS_LITERAL_STRING("error"));
|
||||||
ChangeDelayLoadStatus(false);
|
ChangeDelayLoadStatus(false);
|
||||||
UpdateAudioChannelPlayingState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef void (HTMLMediaElement::*SyncSectionFn)();
|
typedef void (HTMLMediaElement::*SyncSectionFn)();
|
||||||
@ -3531,7 +3530,6 @@ void HTMLMediaElement::Error(uint16_t aErrorCode)
|
|||||||
ChangeNetworkState(nsIDOMHTMLMediaElement::NETWORK_IDLE);
|
ChangeNetworkState(nsIDOMHTMLMediaElement::NETWORK_IDLE);
|
||||||
}
|
}
|
||||||
ChangeDelayLoadStatus(false);
|
ChangeDelayLoadStatus(false);
|
||||||
UpdateAudioChannelPlayingState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTMLMediaElement::PlaybackEnded()
|
void HTMLMediaElement::PlaybackEnded()
|
||||||
@ -4758,11 +4756,6 @@ HTMLMediaElement::IsPlayingThroughTheAudioChannel() const
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we have an error, we are not playing.
|
|
||||||
if (mError) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// The volume should not be ~0
|
// The volume should not be ~0
|
||||||
if (std::fabs(Volume()) <= 1e-7) {
|
if (std::fabs(Volume()) <= 1e-7) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user