Bug 1301068: Ensure InputExhausted is called if H264Converter drops a frame. r?gerald
MozReview-Commit-ID: LyZlzU4D58o
--- a/dom/media/platforms/wrappers/H264Converter.cpp
+++ b/dom/media/platforms/wrappers/H264Converter.cpp
@@ -75,16 +75,17 @@ H264Converter::Input(MediaRawData* aSamp
if (!mDecoder) {
// It is not possible to create an AVCC H264 decoder without SPS.
// As such, creation will fail if the extra_data just extracted doesn't
// contain a SPS.
rv = CreateDecoderAndInit(aSample);
if (rv == NS_ERROR_NOT_INITIALIZED) {
// We are missing the required SPS to create the decoder.
// Ignore for the time being, the MediaRawData will be dropped.
+ mCallback->InputExhausted();
return NS_OK;
}
} else {
rv = CheckForSPSChange(aSample);
}
NS_ENSURE_SUCCESS(rv, rv);
if (mNeedKeyframe && !aSample->mKeyframe) {