Split WebMPacketQueue from WebMReader

Also, use nsRefPtr instead of already_AddRefed.
This commit is contained in:
trav90
2017-07-16 03:19:09 -05:00
committed by Roy Tam
parent dcb42ce11b
commit cdffe84c63
5 changed files with 47 additions and 46 deletions
+1 -1
View File
@@ -131,7 +131,7 @@ SoftwareWebMVideoDecoder::DecodeVideoFrame(bool &aKeyframeSkip,
nsRefPtr<NesteggPacketHolder> next_holder(mReader->NextPacket(WebMReader::VIDEO));
if (next_holder) {
next_tstamp = next_holder->Timestamp();
mReader->PushVideoPacket(next_holder.forget());
mReader->PushVideoPacket(next_holder);
} else {
next_tstamp = tstamp;
next_tstamp += tstamp - mReader->GetLastVideoFrameTime();