[multibuffer] Always clear cancel_upon_defer_ when playback starts.
During the changes made for preload=metadata suspend, it was assumed that OnBufferingHaveEnough() had no lingering effects after the next call to MediaIsPlaying(). It turns out this was not true. The method would only clear |cancel_upon_defer_| the first time. The fix is to always clear |cancel_upon_defer_| once the DataSource has been informed of playback. A new unittest verifies this. BUG=1004530 TEST=new unittest, clip from bug does not create more than 1 loader after a seek from the suspended state. R=tguilbert Change-Id: I7655d7ff0ee0ba1024ec0486331d84aeda16918c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1807160 Commit-Queue: Dale Curtis <dalecurtis@chromium.org> Commit-Queue: Thomas Guilbert <tguilbert@chromium.org> Auto-Submit: Dale Curtis <dalecurtis@chromium.org> Reviewed-by:Thomas Guilbert <tguilbert@chromium.org> Cr-Commit-Position: refs/heads/master@{#697421}
Showing
Please register or sign in to comment