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

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: Fix cast. 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
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..d54c8cd6561b28e2d215b47e327b2f6cc810aa77 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::DecoderStatus status) {
Status result_status = kDecodeOk;
scoped_refptr<media::DecoderBufferBase> decoded;
- if (status == ::media::AudioDecoder::kOk && !decoded_chunks_.empty()) {
+ if (status == ::media::DecoderStatus::OK && !decoded_chunks_.empty()) {
decoded = ConvertDecoded();
} else {
- if (status != ::media::AudioDecoder::kOk)
+ if (status != ::media::DecoderStatus::OK)
result_status = kDecodeError;
decoded = new media::DecoderBufferAdapter(config_.id,
new ::media::DecoderBuffer(0));

Powered by Google App Engine
This is Rietveld 408576698