| Index: media/mojo/services/mojo_audio_decoder.cc
|
| diff --git a/media/mojo/services/mojo_audio_decoder.cc b/media/mojo/services/mojo_audio_decoder.cc
|
| index 19ac2402c8aad527d258760231ffadf61717c4dd..ca715982a0dd41f1f2d1e855c3cda484799ff150 100644
|
| --- a/media/mojo/services/mojo_audio_decoder.cc
|
| +++ b/media/mojo/services/mojo_audio_decoder.cc
|
| @@ -163,27 +163,12 @@ void MojoAudioDecoder::OnInitialized(bool success,
|
| base::ResetAndReturn(&init_cb_).Run(success);
|
| }
|
|
|
| -static media::DecodeStatus ConvertDecodeStatus(
|
| - interfaces::AudioDecoder::DecodeStatus status) {
|
| - switch (status) {
|
| - case interfaces::AudioDecoder::DecodeStatus::OK:
|
| - return media::DecodeStatus::OK;
|
| - case interfaces::AudioDecoder::DecodeStatus::ABORTED:
|
| - return media::DecodeStatus::ABORTED;
|
| - case interfaces::AudioDecoder::DecodeStatus::DECODE_ERROR:
|
| - return media::DecodeStatus::DECODE_ERROR;
|
| - }
|
| - NOTREACHED();
|
| - return media::DecodeStatus::DECODE_ERROR;
|
| -}
|
| -
|
| -void MojoAudioDecoder::OnDecodeStatus(
|
| - interfaces::AudioDecoder::DecodeStatus status) {
|
| +void MojoAudioDecoder::OnDecodeStatus(interfaces::DecodeStatus status) {
|
| DVLOG(1) << __FUNCTION__ << ": status:" << status;
|
| DCHECK(task_runner_->BelongsToCurrentThread());
|
|
|
| DCHECK(!decode_cb_.is_null());
|
| - base::ResetAndReturn(&decode_cb_).Run(ConvertDecodeStatus(status));
|
| + base::ResetAndReturn(&decode_cb_).Run(static_cast<DecodeStatus>(status));
|
| }
|
|
|
| void MojoAudioDecoder::OnResetDone() {
|
|
|