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
@@ -189,7 +189,7 @@ IntelWebMVideoDecoder::Demux(nsRefPtr<VP8Sample>& aSample, bool* aEOS)
nsRefPtr<NesteggPacketHolder> next_holder(mReader->NextPacket(WebMReader::VIDEO));
if (next_holder) {
next_tstamp = holder->Timestamp();
mReader->PushVideoPacket(next_holder.forget());
mReader->PushVideoPacket(next_holder);
} else {
next_tstamp = tstamp;
next_tstamp += tstamp - mReader->GetLastVideoFrameTime();