Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: media/blink/websourcebuffer_impl.cc

Issue 1008463002: Fix MSE GC, make it less aggressive, more spec-compliant (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use newDataSize in SourceBufferStream::GarbageCollectIfNeeded Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/blink/websourcebuffer_impl.cc
diff --git a/media/blink/websourcebuffer_impl.cc b/media/blink/websourcebuffer_impl.cc
index 0e387785ae1db4d0bb3a64b54d7dac0d3b1100fc..f4507f36a77e4179dbdab9d267ea42544a04ca5b 100644
--- a/media/blink/websourcebuffer_impl.cc
+++ b/media/blink/websourcebuffer_impl.cc
@@ -81,6 +81,14 @@ blink::WebTimeRanges WebSourceBufferImpl::buffered() {
return result;
}
+bool WebSourceBufferImpl::evictCodedFrames(double currentPlaybackTime,
+ size_t newDataSize) {
+ return demuxer_->EvictCodedFrames(
+ id_,
+ base::TimeDelta::FromSecondsD(currentPlaybackTime),
+ newDataSize);
+}
+
void WebSourceBufferImpl::append(
const unsigned char* data,
unsigned length,

Powered by Google App Engine
This is Rietveld 408576698