Fix crash caused by removing the gap at the beginning of a media segment.
Some media segments have a start time that is slightly earlier than the timestamp of the first buffer in that segment. If SourceBufferStream::Remove() is called with a range that only covered part of this gap, then the SourceBufferStream code could end up crashing when it was trying to handle the remove. This change fixes the crash by properly removing the empty range that gets created when such a remove occurs. BUG=382815 TEST=SourceBufferStreamTest.Remove_GapAtBeginningOfMediaSegment Review URL: https://codereview.chromium.org/328223002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276897 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment