Title: [225936] trunk/Source/WebCore
- Revision
- 225936
- Author
- [email protected]
- Date
- 2017-12-14 15:13:41 -0800 (Thu, 14 Dec 2017)
Log Message
[MSE] Add isValid() check before using trackBuffer.lastEnqueuedPresentationTime
https://bugs.webkit.org/show_bug.cgi?id=180258
Patch by Alicia Boya García <[email protected]> on 2017-12-14
Reviewed by Jer Noble.
* Modules/mediasource/SourceBuffer.cpp:
(WebCore::SourceBuffer::sourceBufferPrivateDidReceiveSample):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (225935 => 225936)
--- trunk/Source/WebCore/ChangeLog 2017-12-14 22:57:14 UTC (rev 225935)
+++ trunk/Source/WebCore/ChangeLog 2017-12-14 23:13:41 UTC (rev 225936)
@@ -1,3 +1,13 @@
+2017-12-14 Alicia Boya García <[email protected]>
+
+ [MSE] Add isValid() check before using trackBuffer.lastEnqueuedPresentationTime
+ https://bugs.webkit.org/show_bug.cgi?id=180258
+
+ Reviewed by Jer Noble.
+
+ * Modules/mediasource/SourceBuffer.cpp:
+ (WebCore::SourceBuffer::sourceBufferPrivateDidReceiveSample):
+
2017-12-14 John Wilander <[email protected]>
Storage Access API: Implement frame-specific access in the document.cookie layer
Modified: trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp (225935 => 225936)
--- trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp 2017-12-14 22:57:14 UTC (rev 225935)
+++ trunk/Source/WebCore/Modules/mediasource/SourceBuffer.cpp 2017-12-14 23:13:41 UTC (rev 225936)
@@ -1566,7 +1566,7 @@
// Only force the TrackBuffer to re-enqueue if the removed ranges overlap with enqueued and possibly
// not yet displayed samples.
MediaTime currentMediaTime = m_source->currentTime();
- if (currentMediaTime < trackBuffer.lastEnqueuedPresentationTime) {
+ if (trackBuffer.lastEnqueuedPresentationTime.isValid() && currentMediaTime < trackBuffer.lastEnqueuedPresentationTime) {
PlatformTimeRanges possiblyEnqueuedRanges(currentMediaTime, trackBuffer.lastEnqueuedPresentationTime);
possiblyEnqueuedRanges.intersectWith(erasedRanges);
if (possiblyEnqueuedRanges.length())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes