Skip to content

Commit

Permalink
* OggPacketReader: Fix silly seeking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ioctlLR committed Nov 18, 2014
1 parent e157456 commit 279d1b4
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions NVorbis/Ogg/OggPacketReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,21 +321,10 @@ Packet GetLastPacketInPage(Packet packet)
packet = packet.Next;
}

while (packet != null && packet.IsContinued)
if (packet != null && packet.IsContinued)
{
// gotta go grab the next page
if (_eosFound)
{
packet = null;
}
else
{
_container.GatherNextPage(_streamSerial);
if (_eosFound)
{
packet = null;
}
}
// move to the *actual* last packet of the page... If .Prev is null, something is wrong and we can't seek anyway
packet = packet.Prev;
}
}
return packet;
Expand Down

0 comments on commit 279d1b4

Please sign in to comment.