summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/media/buffered_data_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/media/buffered_data_source.cc')
-rw-r--r--chrome/renderer/media/buffered_data_source.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/renderer/media/buffered_data_source.cc b/chrome/renderer/media/buffered_data_source.cc
index edec5c1..fab726f 100644
--- a/chrome/renderer/media/buffered_data_source.cc
+++ b/chrome/renderer/media/buffered_data_source.cc
@@ -542,7 +542,7 @@ void BufferedDataSource::Initialize(const std::string& url,
// Make sure we support the scheme of the URL.
if (!IsSchemeSupported(url_)) {
- host()->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->SetError(media::PIPELINE_ERROR_NETWORK);
initialize_callback_->Run();
initialize_callback_.reset();
return;
@@ -569,7 +569,7 @@ void BufferedDataSource::Initialize(const std::string& url,
// Use the local reference to start the request.
if (!resource_loader) {
- host()->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->SetError(media::PIPELINE_ERROR_NETWORK);
initialize_callback_->Run();
initialize_callback_.reset();
return;
@@ -577,7 +577,7 @@ void BufferedDataSource::Initialize(const std::string& url,
if (net::ERR_IO_PENDING != resource_loader->Start(
NewCallback(this, &BufferedDataSource::InitialRequestStarted))) {
- host()->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->SetError(media::PIPELINE_ERROR_NETWORK);
initialize_callback_->Run();
initialize_callback_.reset();
}
@@ -680,7 +680,7 @@ bool BufferedDataSource::IsSeekable() {
void BufferedDataSource::HandleError(media::PipelineError error) {
AutoLock auto_lock(lock_);
if (!stopped_) {
- host()->Error(error);
+ host()->SetError(error);
}
}
@@ -709,7 +709,7 @@ void BufferedDataSource::OnInitialRequestStarted(int error) {
host()->SetBufferedBytes(total_bytes_);
}
} else {
- host()->Error(media::PIPELINE_ERROR_NETWORK);
+ host()->SetError(media::PIPELINE_ERROR_NETWORK);
}
}
initialize_callback_->Run();