mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1044498 - Pass saved init segment to decoder's NotifyDataAvailable. r=cajbir
This commit is contained in:
parent
c205b09b81
commit
31afea0173
@ -590,6 +590,9 @@ SourceBuffer::AppendData(const uint8_t* aData, uint32_t aLength, ErrorResult& aR
|
||||
MSE_DEBUG("SourceBuffer(%p)::AppendData: Decoder marked as initialized.", this);
|
||||
mDecoderInitialized = true;
|
||||
const nsTArray<uint8_t>& initData = mParser->InitData();
|
||||
mDecoder->NotifyDataArrived(reinterpret_cast<const char*>(initData.Elements()),
|
||||
initData.Length(),
|
||||
0);
|
||||
mDecoder->GetResource()->AppendData(initData.Elements(), initData.Length());
|
||||
}
|
||||
mLastParsedTimestamp = end;
|
||||
|
@ -127,6 +127,7 @@ void WebMBufferedParser::Append(const unsigned char* aBuffer, uint32_t aLength,
|
||||
}
|
||||
break;
|
||||
case READ_TIMECODESCALE:
|
||||
MOZ_ASSERT(mGotTimecodeScale);
|
||||
mTimecodeScale = mVInt.mValue;
|
||||
mState = READ_ELEMENT_ID;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user