Bug 1125776: Part7. Only notify reader we have data, when we actually do. r=mattwoodrow

This commit is contained in:
Jean-Yves Avenard 2015-02-04 20:20:16 +11:00
parent 04f33309e6
commit fdf83c97db

View File

@ -243,11 +243,11 @@ TrackBuffer::AppendData(LargeDataBuffer* aData, int64_t aTimestampOffset)
// We're going to have to wait for the decoder to initialize, the promise // We're going to have to wait for the decoder to initialize, the promise
// will be resolved once initialization completes. // will be resolved once initialization completes.
return p; return p;
} else if (gotMedia) {
// Tell our reader that we have more data to ensure that playback starts if
// required when data is appended.
mParentDecoder->GetReader()->MaybeNotifyHaveData();
} }
// Tell our reader that we have more data to ensure that playback starts if
// required when data is appended.
mParentDecoder->GetReader()->MaybeNotifyHaveData();
mInitializationPromise.Resolve(gotMedia, __func__); mInitializationPromise.Resolve(gotMedia, __func__);
return p; return p;
} }