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

Unified Diff: media/filters/ffmpeg_audio_decoder.cc

Issue 2835043004: MEDIA_LOG FFmpegAudioDecoder::ConfigureDecoder() channel mismatch (Closed)
Patch Set: Created 3 years, 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.cc
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc
index 7f81864646d5ab8d8794006ce88b54523d86ded3..146fc9726f17ea90d091f2b75daa36bd6f571148 100644
--- a/media/filters/ffmpeg_audio_decoder.cc
+++ b/media/filters/ffmpeg_audio_decoder.cc
@@ -346,10 +346,11 @@ bool FFmpegAudioDecoder::ConfigureDecoder() {
if (codec_context_->channels !=
ChannelLayoutToChannelCount(config_.channel_layout())) {
- DLOG(ERROR) << "Audio configuration specified "
- << ChannelLayoutToChannelCount(config_.channel_layout())
- << " channels, but FFmpeg thinks the file contains "
- << codec_context_->channels << " channels";
+ MEDIA_LOG(ERROR, media_log_)
+ << "Audio configuration specified "
+ << ChannelLayoutToChannelCount(config_.channel_layout())
+ << " channels, but FFmpeg thinks the file contains "
+ << codec_context_->channels << " channels";
ReleaseFFmpegResources();
state_ = kUninitialized;
return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698