Bug 1194612: P1. Dont reject init promise when initialising H264Converter. r=alfredo

A decoder isn't created until a SPS and PPS NALs have been detected in the stream. The decoder will be initialised instead lazily later during the input process.
This commit is contained in:
Jean-Yves Avenard 2015-08-14 18:48:51 +10:00
Родитель 486cee1a15
Коммит b619f8c2e7
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -46,8 +46,9 @@ H264Converter::Init()
return mDecoder->Init();
}
return MediaDataDecoder::InitPromise::CreateAndReject(
MediaDataDecoder::DecoderFailureReason::INIT_ERROR, __func__);
// We haven't been able to initialize a decoder due to a missing SPS/PPS.
return MediaDataDecoder::InitPromise::CreateAndResolve(
TrackType::kVideoTrack, __func__);
}
nsresult