| Index: media/blink/multibuffer_data_source.cc
|
| diff --git a/media/blink/multibuffer_data_source.cc b/media/blink/multibuffer_data_source.cc
|
| index f1bdc9ffb6ac367b3b27150c0de5f1504f5be41d..f0e38a0a85e6593b3ea349f5eef53726f404791a 100644
|
| --- a/media/blink/multibuffer_data_source.cc
|
| +++ b/media/blink/multibuffer_data_source.cc
|
| @@ -113,6 +113,7 @@ MultibufferDataSource::MultibufferDataSource(
|
| total_bytes_(kPositionNotSpecified),
|
| streaming_(false),
|
| loading_(false),
|
| + failed_(false),
|
| render_task_runner_(task_runner),
|
| url_index_(url_index),
|
| frame_(frame),
|
| @@ -185,6 +186,7 @@ void MultibufferDataSource::OnRedirect(
|
| const scoped_refptr<UrlData>& destination) {
|
| if (!destination) {
|
| // A failure occured.
|
| + failed_ = true;
|
| if (!init_cb_.is_null()) {
|
| render_task_runner_->PostTask(
|
| FROM_HERE,
|
| @@ -256,8 +258,7 @@ bool MultibufferDataSource::DidPassCORSAccessCheck() const {
|
| // If init_cb is set, we initialization is not finished yet.
|
| if (!init_cb_.is_null())
|
| return false;
|
| - // Loader will be false if there was a failure.
|
| - if (!reader_)
|
| + if (failed_)
|
| return false;
|
| return true;
|
| }
|
|
|