Skip to content

Commit d04c778

Browse files
committed
Fix TODO
1 parent 19750ae commit d04c778

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

library/src/main/java/com/sandflow/smpte/mxf/StreamingWriter.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,7 @@ private enum State {
667667
private final UIDGenerator uidGenerator;
668668

669669
/**
670-
* Instantiates a StreamingWriter.
670+
* Instantiates a StreamingWriter. The StreamingWriter makes a copy of the provided preface.
671671
*
672672
* @param os Output stream to write the MXF file to.
673673
* @param preface Preface set of the MXF file.
@@ -682,7 +682,7 @@ public StreamingWriter(OutputStream os, Preface preface, EventHandler evthandler
682682
}
683683

684684
/**
685-
* Instantiates a StreamingWriter with a custom UID generator.
685+
* Instantiates a StreamingWriter with a custom UID generator. The StreamingWriter makes a copy of the provided preface.
686686
*
687687
* @param os Output stream to write the MXF file to.
688688
* @param preface Preface set of the MXF file.
@@ -712,8 +712,7 @@ public StreamingWriter(OutputStream os, Preface preface, EventHandler evthandler
712712
}
713713
this.uidGenerator = uidg;
714714

715-
/* TODO: make a copy */
716-
this.preface = preface;
715+
this.preface = preface.copyOf();
717716

718717
this.evthandler = evthandler;
719718
}

0 commit comments

Comments
 (0)