Skip to content

Commit

Permalink
bugfix: uninitialized field in BasicStream (issue #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Sep 24, 2022
1 parent aac33dd commit b9372ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/de/jarnbjo/ogg/BasicStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@
*/
public class BasicStream implements PhysicalOggStream {
private boolean closed = false;
private InputStream sourceStream;
final private InputStream sourceStream;
private int position = 0;

final private HashMap logicalStreams = new HashMap();
private OggPage firstPage;

public BasicStream(InputStream sourceStream) throws IOException {
this.sourceStream = sourceStream;
firstPage = OggPage.create(sourceStream);
position += firstPage.getTotalLength();
LogicalOggStreamImpl los = new LogicalOggStreamImpl(this, firstPage.getStreamSerialNumber());
Expand Down

0 comments on commit b9372ce

Please sign in to comment.