Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(69)

Unified Diff: media/mojo/services/mojo_audio_decoder_service.cc

Issue 1834303005: Refactor audio and video decoder status into common file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_audio_decoder_service.h ('k') | media/mojo/services/mojo_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_audio_decoder_service.cc
diff --git a/media/mojo/services/mojo_audio_decoder_service.cc b/media/mojo/services/mojo_audio_decoder_service.cc
index c27b03f379518d40943a39e62c85d4b271183da7..16ab502716ade52fcc2997024344cd9a24b1cf9a 100644
--- a/media/mojo/services/mojo_audio_decoder_service.cc
+++ b/media/mojo/services/mojo_audio_decoder_service.cc
@@ -104,22 +104,21 @@ void MojoAudioDecoderService::OnInitialized(const InitializeCallback& callback,
}
static interfaces::AudioDecoder::DecodeStatus ConvertDecodeStatus(
- media::AudioDecoder::Status status) {
+ media::DecodeStatus status) {
switch (status) {
- case media::AudioDecoder::kOk:
+ case media::DecodeStatus::OK:
return interfaces::AudioDecoder::DecodeStatus::OK;
- case media::AudioDecoder::kAborted:
+ case media::DecodeStatus::ABORTED:
return interfaces::AudioDecoder::DecodeStatus::ABORTED;
- case media::AudioDecoder::kDecodeError:
+ case media::DecodeStatus::DECODE_ERROR:
return interfaces::AudioDecoder::DecodeStatus::DECODE_ERROR;
}
NOTREACHED();
return interfaces::AudioDecoder::DecodeStatus::DECODE_ERROR;
}
-void MojoAudioDecoderService::OnDecodeStatus(
- const DecodeCallback& callback,
- media::AudioDecoder::Status status) {
+void MojoAudioDecoderService::OnDecodeStatus(const DecodeCallback& callback,
+ media::DecodeStatus status) {
DVLOG(3) << __FUNCTION__ << " status:" << status;
callback.Run(ConvertDecodeStatus(status));
}
« no previous file with comments | « media/mojo/services/mojo_audio_decoder_service.h ('k') | media/mojo/services/mojo_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698