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

Unified Diff: media/filters/opus_audio_decoder.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/filters/gpu_video_decoder.cc ('k') | media/filters/vpx_video_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/opus_audio_decoder.cc
diff --git a/media/filters/opus_audio_decoder.cc b/media/filters/opus_audio_decoder.cc
index bec37f36b39c49346baa7421ee73727cfd8ce369..39d38fa063d6a1e154537139e59ba37b40044709 100644
--- a/media/filters/opus_audio_decoder.cc
+++ b/media/filters/opus_audio_decoder.cc
@@ -196,7 +196,7 @@ void OpusAudioDecoder::DecodeBuffer(
// Libopus does not buffer output. Decoding is complete when an end of stream
// input buffer is received.
if (input->end_of_stream()) {
- decode_cb.Run(kOk);
+ decode_cb.Run(DecodeStatus::OK);
return;
}
@@ -204,14 +204,14 @@ void OpusAudioDecoder::DecodeBuffer(
// occurs with some damaged files.
if (input->timestamp() == kNoTimestamp()) {
DLOG(ERROR) << "Received a buffer without timestamps!";
- decode_cb.Run(kDecodeError);
+ decode_cb.Run(DecodeStatus::DECODE_ERROR);
return;
}
scoped_refptr<AudioBuffer> output_buffer;
if (!Decode(input, &output_buffer)) {
- decode_cb.Run(kDecodeError);
+ decode_cb.Run(DecodeStatus::DECODE_ERROR);
return;
}
@@ -219,7 +219,7 @@ void OpusAudioDecoder::DecodeBuffer(
output_cb_.Run(output_buffer);
}
- decode_cb.Run(kOk);
+ decode_cb.Run(DecodeStatus::OK);
}
bool OpusAudioDecoder::ConfigureDecoder() {
« no previous file with comments | « media/filters/gpu_video_decoder.cc ('k') | media/filters/vpx_video_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698