Index: media/filters/ffmpeg_audio_decoder.cc |
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc |
index edb7a02b5915eaf8d86ed802697a1aa3b5e965d5..048d93d9a96372616d9162bd7b301a65be0a50aa 100644 |
--- a/media/filters/ffmpeg_audio_decoder.cc |
+++ b/media/filters/ffmpeg_audio_decoder.cc |
@@ -67,7 +67,7 @@ bool FFmpegAudioDecoder::OnInitialize(DemuxerStream* demuxer_stream) { |
// Prepare the output buffer. |
output_buffer_.reset(static_cast<uint8*>(av_malloc(kOutputBufferSize))); |
if (!output_buffer_.get()) { |
- host()->Error(PIPELINE_ERROR_OUT_OF_MEMORY); |
+ host()->SetError(PIPELINE_ERROR_OUT_OF_MEMORY); |
return false; |
} |
return true; |
@@ -101,7 +101,7 @@ void FFmpegAudioDecoder::OnDecode(Buffer* input) { |
if (result < 0 || |
output_buffer_size < 0 || |
static_cast<size_t>(output_buffer_size) > kOutputBufferSize) { |
- host()->Error(PIPELINE_ERROR_DECODE); |
+ host()->SetError(PIPELINE_ERROR_DECODE); |
return; |
} |