Chromium Code Reviews| Index: media/filters/audio_file_reader.cc |
| =================================================================== |
| --- media/filters/audio_file_reader.cc (revision 98708) |
| +++ media/filters/audio_file_reader.cc (working copy) |
| @@ -91,6 +91,10 @@ |
| } |
| result = av_seek_frame(format_context_, 0, 0, 0); |
| + } else { |
| + DLOG(WARNING) << "AudioFileReader::Open() : could not find codec -" |
|
scherkus (not reviewing)
2011/08/30 20:25:33
the indentation is wrong here -- could you TBR a p
|
| + << " result: " << result; |
| + return false; |
| } |
| return true; |
| @@ -116,8 +120,8 @@ |
| if (audio_data.size() != channels) |
| return false; |
| - DCHECK(format_context_ && codec_context_); |
| - if (!format_context_ || !codec_context_) { |
| + DCHECK(format_context_ && codec_context_ && codec_); |
| + if (!format_context_ || !codec_context_ || !codec_) { |
| DLOG(WARNING) << "AudioFileReader::Read() : reader is not opened!"; |
| return false; |
| } |