⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 225936 in webkit


Ignore:
Timestamp:
Dec 14, 2017, 3:13:41 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

[MSE] Add isValid() check before using trackBuffer.lastEnqueuedPresentationTime
​https://bugs.webkit.org/show_bug.cgi?id=180258

Patch by Alicia Boya García <​aboya@igalia.com> on 2017-12-14
Reviewed by Jer Noble.

  • Modules/mediasource/SourceBuffer.cpp:

(WebCore::SourceBuffer::sourceBufferPrivateDidReceiveSample):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r225934 r225936  
     12017-12-14  Alicia Boya García  <aboya@igalia.com>
     2
     3        [MSE] Add isValid() check before using trackBuffer.lastEnqueuedPresentationTime
     4        https://bugs.webkit.org/show_bug.cgi?id=180258
     5
     6        Reviewed by Jer Noble.
     7
     8        * Modules/mediasource/SourceBuffer.cpp:
     9        (WebCore::SourceBuffer::sourceBufferPrivateDidReceiveSample):
     10
    1112017-12-14  John Wilander  <wilander@apple.com>
    212
  • trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp

    r225442 r225936  
    15671567            // not yet displayed samples.
    15681568            MediaTime currentMediaTime = m_source->currentTime();
    1569             if (currentMediaTime < trackBuffer.lastEnqueuedPresentationTime) {
     1569            if (trackBuffer.lastEnqueuedPresentationTime.isValid() && currentMediaTime < trackBuffer.lastEnqueuedPresentationTime) {
    15701570                PlatformTimeRanges possiblyEnqueuedRanges(currentMediaTime, trackBuffer.lastEnqueuedPresentationTime);
    15711571                possiblyEnqueuedRanges.intersectWith(erasedRanges);
Note: See TracChangeset for help on using the changeset viewer.