Changeset 164296 in webkit
- Timestamp:
- Feb 18, 2014, 10:43:49 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r164294 r164296 1 2014-02-18 Eric Carlson <eric.carlson@apple.com> 2 3 Do not cache media time until media engine returns a non-zero value 4 https://bugs.webkit.org/show_bug.cgi?id=128976 5 6 Reviewed by Jer Noble. 7 8 No new tests, covered by existing tests. 9 10 * html/HTMLMediaElement.cpp: 11 (WebCore::HTMLMediaElement::refreshCachedTime): Don't mark the cached time as valid 12 until it is non-zero. 13 1 14 2014-02-18 Mihai Tica <mitica@adobe.com> 2 15 -
trunk/Source/WebCore/html/HTMLMediaElement.cpp
r164174 r164296 2440 2440 { 2441 2441 m_cachedTime = m_player->currentTime(); 2442 if (!m_cachedTime) { 2443 // Do not use m_cachedTime until the media engine returns a non-zero value because we can't 2444 // estimate current time until playback actually begins. 2445 invalidateCachedTime(); 2446 return; 2447 } 2448 2449 LOG(Media, "HTMLMediaElement::refreshCachedTime - caching time %f", m_cachedTime); 2442 2450 m_clockTimeAtLastCachedTimeUpdate = monotonicallyIncreasingTime(); 2443 2451 } 2444 2452 2445 void HTMLMediaElement::invalidateCachedTime() 2453 void HTMLMediaElement::invalidateCachedTime() const 2446 2454 { 2447 2455 LOG(Media, "HTMLMediaElement::invalidateCachedTime"); -
trunk/Source/WebCore/html/HTMLMediaElement.h
r164174 r164296 654 654 655 655 void setShouldDelayLoadEvent(bool); 656 void invalidateCachedTime() ;656 void invalidateCachedTime() const; 657 657 void refreshCachedTime() const; 658 658
Note:
See TracChangeset
for help on using the changeset viewer.