Bug 923848 - Reuse mp3 file format check result. r=doublec

This commit is contained in:
Sotaro Ikeda 2013-10-14 07:37:09 -04:00
parent d56fa20eab
commit 852bed7c7d

View File

@ -411,7 +411,7 @@ bool OmxDecoder::TryLoad() {
const char* audioMime;
sp<MetaData> meta = mAudioTrack->getFormat();
if (meta->findCString(kKeyMIMEType, &audioMime) && !strcasecmp(audioMime, AUDIO_MP3)) {
if (mIsMp3) {
// Feed MP3 parser with cached data. Local files will be fully
// cached already, network streams will update with sucessive
// calls to NotifyDataArrived.