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

Unified Diff: media/filters/source_buffer_stream.cc

Issue 220103002: Fix unit test failures with estimated durations and splice frames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/source_buffer_stream.cc
diff --git a/media/filters/source_buffer_stream.cc b/media/filters/source_buffer_stream.cc
index 89281d65bb4288b29a7d748e88f5c35517d08a1e..58279c660fe76f9a3860eff822bdd961ef6b0b24 100644
--- a/media/filters/source_buffer_stream.cc
+++ b/media/filters/source_buffer_stream.cc
@@ -1648,6 +1648,9 @@ void SourceBufferStream::GenerateSpliceFrame(const BufferQueue& new_buffers) {
}
}
+ if (new_buffers.front()->timestamp() == media_segment_start_time_)
+ media_segment_start_time_ = pre_splice_buffers.front()->timestamp();
acolwell GONE FROM CHROMIUM 2014/04/01 00:39:11 I believe this makes the crash go away, but it isn
DaleCurtis 2014/04/01 21:33:57 Your suggestion also fixes the issue. However add
+
new_buffers.front()->ConvertToSpliceBuffer(pre_splice_buffers);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698