Bug 1128179 - Avoiding crash when appending data after decoder initialization failed. r=jya

--HG--
extra : rebase_source : 42d3c13c175cbe6a6e81bc56e3d61f596eae970f
This commit is contained in:
Matt Woodrow 2015-02-03 09:44:46 +13:00
Родитель a4841fa5e6
Коммит 11cfd64eba
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -168,7 +168,7 @@ TrackBuffer::AppendData(LargeDataBuffer* aData, int64_t aTimestampOffset)
mLastEndTimestamp && mLastEndTimestamp &&
(!mParser->TimestampsFuzzyEqual(start, mLastEndTimestamp.value()) || (!mParser->TimestampsFuzzyEqual(start, mLastEndTimestamp.value()) ||
mLastTimestampOffset != aTimestampOffset || mLastTimestampOffset != aTimestampOffset ||
mDecoderPerSegment || mCurrentDecoder->WasTrimmed())) { mDecoderPerSegment || (mCurrentDecoder && mCurrentDecoder->WasTrimmed()))) {
MSE_DEBUG("TrackBuffer(%p)::AppendData: Data last=[%lld, %lld] overlaps [%lld, %lld]", MSE_DEBUG("TrackBuffer(%p)::AppendData: Data last=[%lld, %lld] overlaps [%lld, %lld]",
this, mLastStartTimestamp, mLastEndTimestamp.value(), start, end); this, mLastStartTimestamp, mLastEndTimestamp.value(), start, end);