Update selected range after truncation
Update |SourceBufferStream::selected_range_| after |TruncateAt| is called in case the range pointed to by it gets deleted. There are situations where next_buffer_index_ remains at -1 where|ChunkDemuxer::AppendData| is invoked. This eventually causes crash. This changes prevents such cases. The crash is occasionally observed when YouTube MSE/EME conformance test http://yt-dash-mse-test.commondatastorage.googleapis.com/unit-tests/tot.html (41.MediaSourceDuration) is done on Android TV device. BUG=313102 Review URL: https://codereview.chromium.org/51983002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233468 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment