summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/renderer/media/audio_renderer_impl.cc2
-rw-r--r--chrome/renderer/media/buffered_data_source.cc10
2 files changed, 6 insertions, 6 deletions
diff --git a/chrome/renderer/media/audio_renderer_impl.cc b/chrome/renderer/media/audio_renderer_impl.cc
index cdee03c..c64c432 100644
--- a/chrome/renderer/media/audio_renderer_impl.cc
+++ b/chrome/renderer/media/audio_renderer_impl.cc
@@ -194,7 +194,7 @@ void AudioRendererImpl::OnStateChanged(AudioOutputStream::State state,
switch (state) {
case AudioOutputStream::STATE_ERROR:
- host()->Error(media::PIPELINE_ERROR_AUDIO_HARDWARE);
+ host()->SetError(media::PIPELINE_ERROR_AUDIO_HARDWARE);
break;
// TODO(hclam): handle these events.
case AudioOutputStream::STATE_STARTED:
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();