Chromium Code Reviews| Index: content/common/media/audio_param_traits.cc |
| =================================================================== |
| --- content/common/media/audio_param_traits.cc (revision 173637) |
| +++ content/common/media/audio_param_traits.cc (working copy) |
| @@ -38,6 +38,8 @@ |
| r->Reset(static_cast<AudioParameters::Format>(format), |
| static_cast<ChannelLayout>(channel_layout), |
| sample_rate, bits_per_sample, frames_per_buffer); |
| + if (!r->IsValid()) |
| + return false; |
| return true; |
| } |