Fix flake in FFmpegDemuxer::SeekOnVideoTrackChange
There is a small number of crashes in m70 caused by video-only src= players being disabled when put in the background. The check for track count size in FFmpegDemuxer::OnSelectedVideoTrackChanged wasn't sufficient to ensure that the vector index lookup in SeekOnVideoTrackChange() would succede, as FindAndEnableProperTracks() can sometimes not find the tracks it's looking for. Bug: 887648 Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win_optional_gpu_tests_rel Change-Id: I23f9457da5f67887f6e7b1a63699c9c7fa0107ed Reviewed-on: https://chromium-review.googlesource.com/1238994 Commit-Queue: Ted Meyer <tmathmeyer@chromium.org> Reviewed-by:Dale Curtis <dalecurtis@chromium.org> Cr-Commit-Position: refs/heads/master@{#593389}
Showing
Please register or sign in to comment