Chromium Code Reviews| Index: Source/core/html/HTMLMediaElement.cpp |
| diff --git a/Source/core/html/HTMLMediaElement.cpp b/Source/core/html/HTMLMediaElement.cpp |
| index 385f7ee088b0d2f72e17a66f06fe6ff430d477e0..3efe1343ba536409cffa2c20e4b33cd4ba29ec6e 100644 |
| --- a/Source/core/html/HTMLMediaElement.cpp |
| +++ b/Source/core/html/HTMLMediaElement.cpp |
| @@ -1460,6 +1460,7 @@ void HTMLMediaElement::noneSupported() |
| void HTMLMediaElement::mediaEngineError(PassRefPtrWillBeRawPtr<MediaError> err) |
| { |
| + ASSERT(m_readyState >= HAVE_METADATA); |
| WTF_LOG(Media, "HTMLMediaElement::mediaEngineError(%d)", static_cast<int>(err->code())); |
| // 1 - The user agent should cancel the fetching process. |
| @@ -1475,10 +1476,8 @@ void HTMLMediaElement::mediaEngineError(PassRefPtrWillBeRawPtr<MediaError> err) |
| closeMediaSource(); |
|
acolwell GONE FROM CHROMIUM
2014/06/18 23:46:27
This line should be removed if we aren't actually
Srirama
2014/06/19 03:35:16
will do it.
On 2014/06/18 23:46:27, acolwell wrote
|
| - // 4 - Set the element's networkState attribute to the NETWORK_EMPTY value and queue a |
| - // task to fire a simple event called emptied at the element. |
| - m_networkState = NETWORK_EMPTY; |
| - scheduleEvent(EventTypeNames::emptied); |
| + // 4 - Set the element's networkState attribute to the NETWORK_IDLE value. |
| + m_networkState = NETWORK_IDLE; |
| // 5 - Set the element's delaying-the-load-event flag to false. This stops delaying the load event. |
| setShouldDelayLoadEvent(false); |