Commit 3e8997c3 authored by Matthew Gregan's avatar Matthew Gregan
Browse files

Bug 1261900 - Allow WebMDemuxer to resume demuxing even after encountering EOS. r=jya

Use the recently added nestegg_read_reset API to restore the demuxer to the
last valid state so that MSE can reattempt parsing the next packet as more
data is added to the stream.
parent 6ca9901b
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -670,7 +670,10 @@ WebMDemuxer::DemuxPacket()
{
  nestegg_packet* packet;
  int r = nestegg_read_packet(mContext, &packet);
  if (r <= 0) {
  if (r == 0) {
    nestegg_read_reset(mContext);
    return nullptr;
  } else if (r < 0) {
    return nullptr;
  }