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

Unified Diff: chromecast/media/cma/decoder/cast_audio_decoder_linux.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 | « no previous file | content/common/gpu/media/video_encode_accelerator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/cma/decoder/cast_audio_decoder_linux.cc
diff --git a/chromecast/media/cma/decoder/cast_audio_decoder_linux.cc b/chromecast/media/cma/decoder/cast_audio_decoder_linux.cc
index d0b8bc4079ee90c2a09a9250b0568060b957e240..316363c21a998e42c1441d8c087c413eb177ced5 100644
--- a/chromecast/media/cma/decoder/cast_audio_decoder_linux.cc
+++ b/chromecast/media/cma/decoder/cast_audio_decoder_linux.cc
@@ -184,13 +184,13 @@ class CastAudioDecoderImpl : public CastAudioDecoder {
void OnDecodeStatus(base::TimeDelta buffer_timestamp,
const DecodeCallback& decode_callback,
- ::media::AudioDecoder::Status status) {
+ ::media::DecodeStatus status) {
Status result_status = kDecodeOk;
scoped_refptr<media::DecoderBufferBase> decoded;
- if (status == ::media::AudioDecoder::kOk && !decoded_chunks_.empty()) {
+ if (status == ::media::DecodeStatus::OK && !decoded_chunks_.empty()) {
decoded = ConvertDecoded();
} else {
- if (status != ::media::AudioDecoder::kOk)
+ if (status != ::media::DecodeStatus::OK)
result_status = kDecodeError;
decoded = new media::DecoderBufferAdapter(config_.id,
new ::media::DecoderBuffer(0));
« no previous file with comments | « no previous file | content/common/gpu/media/video_encode_accelerator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698