Commit 6dd3f322 authored by Fredrik Hubinette's avatar Fredrik Hubinette Committed by Commit Bot

media: Avoid closing connection if we're going to play soon

Bug: 836952
Change-Id: I381042fd107b954b5d47f1dae7e392e5bd3752dc
Reviewed-on: https://chromium-review.googlesource.com/1069804
Commit-Queue: Fredrik Hubinette <hubbe@chromium.org>
Reviewed-by: default avatarDale Curtis <dalecurtis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#561345}
parent cc859bf0
......@@ -1770,7 +1770,7 @@ void WebMediaPlayerImpl::OnBufferingStateChangeInternal(
// Let the DataSource know we have enough data. It may use this information
// to release unused network connections.
if (data_source_)
if (data_source_ && !client_->CouldPlayIfEnoughData())
data_source_->OnBufferingHaveEnough(false);
// Blink expects a timeChanged() in response to a seek().
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment