@@ -96,7 +96,7 @@ export default class MatroskaFile extends File {
9696
9797 this . mode = FileAccessMode . Read ;
9898 try {
99- this . read ( propertiesStyle ) ;
99+ this . read ( ) ;
100100
101101 this . _properties = new Properties ( this . _readState . durationMilliseconds , this . _tracks ) ;
102102 this . _tag = new MatroskaTagCollection (
@@ -139,7 +139,7 @@ export default class MatroskaFile extends File {
139139
140140 // #region Private Methods
141141
142- private read ( propertiesStyle : ReadStyle ) : void {
142+ private read ( ) : void {
143143 // Look up the EBML 0-level ID
144144 // @TODO : This should only search like a couple kilobytes. File is supposed to *start* with this
145145 const firstElementOffset = this . find ( ByteVector . fromByteArray ( [ 0x1A , 0x45 , 0xDF , 0xA3 ] ) ) ;
@@ -155,7 +155,7 @@ export default class MatroskaFile extends File {
155155 this . readEbmlHeader ( e )
156156 parser . setOptions ( this . _header . ebmlMaxIdLength , this . _header . ebmlMaxSizeLength )
157157 } ] ,
158- [ MatroskaIds . SEGMENT , e => this . readSegments ( e , propertiesStyle ) ]
158+ [ MatroskaIds . SEGMENT , e => this . readSegments ( e ) ]
159159 ] ) ;
160160 EbmlParser . processElements ( parser , actions ) ;
161161 } finally {
@@ -196,7 +196,7 @@ export default class MatroskaFile extends File {
196196 this . _header = result ;
197197 }
198198
199- private readSegmentInfo ( infoElement : EbmlElement , readState : TagReadState , readStyle : ReadStyle ) : void {
199+ private readSegmentInfo ( infoElement : EbmlElement , readState : TagReadState ) : void {
200200 // @TODO : If read style is too low, don't read
201201 let duration : number = 0 ;
202202 let timeCodeScale : number ;
@@ -216,7 +216,7 @@ export default class MatroskaFile extends File {
216216 }
217217 }
218218
219- private readSegments ( segmentsElement : EbmlElement , readStyle : ReadStyle ) : void {
219+ private readSegments ( segmentsElement : EbmlElement ) : void {
220220 // Read the children of the segment element
221221 this . _readState = {
222222 attachments : [ ] ,
@@ -226,7 +226,7 @@ export default class MatroskaFile extends File {
226226 } ;
227227 const segmentParseActions = new Map < number , ( e : EbmlElement ) => void > ( [
228228 [ MatroskaIds . SEEK_HEAD , undefined ] ,
229- [ MatroskaIds . INFO , e => this . readSegmentInfo ( e , this . _readState , readStyle ) ] ,
229+ [ MatroskaIds . INFO , e => this . readSegmentInfo ( e , this . _readState ) ] ,
230230 [ MatroskaIds . CLUSTER , undefined ] ,
231231 [ MatroskaIds . TRACKS , e => this . readTracks ( e ) ] ,
232232 [ MatroskaIds . CUES , undefined ] ,
0 commit comments