762b7712 by David LaPalomento

Fix jshint issues

Remove some global references and break lines after the '+' operator.
1 parent 1c56b76c
...@@ -284,8 +284,8 @@ ...@@ -284,8 +284,8 @@
284 patTableId = data[offset]; 284 patTableId = data[offset];
285 285
286 if (patTableId !== 0x00) { 286 if (patTableId !== 0x00) {
287 videojs.log('the table_id of the PAT should be 0x00 but was' 287 videojs.log('the table_id of the PAT should be 0x00 but was' +
288 + patTableId.toString(16)); 288 patTableId.toString(16));
289 } 289 }
290 290
291 // the current_next_indicator specifies whether this PAT is 291 // the current_next_indicator specifies whether this PAT is
...@@ -382,8 +382,8 @@ ...@@ -382,8 +382,8 @@
382 offset += 1 + data[offset]; 382 offset += 1 + data[offset];
383 } 383 }
384 if (data[offset] !== 0x02) { 384 if (data[offset] !== 0x02) {
385 videojs.log('The table_id of a PMT should be 0x02 but was ' 385 videojs.log('The table_id of a PMT should be 0x02 but was ' +
386 + data[offset].toString(16)); 386 data[offset].toString(16));
387 } 387 }
388 388
389 // whether this PMT is currently applicable or is part of the 389 // whether this PMT is currently applicable or is part of the
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
27 0x09, 0x00, 0x00, 0x00, 0x00 27 0x09, 0x00, 0x00, 0x00, 0x00
28 ], 28 ],
29 29
30 extend = videojs.util.mergeOptions, 30 extend = window.videojs.util.mergeOptions,
31 31
32 testAudioTag, 32 testAudioTag,
33 testVideoTag, 33 testVideoTag,
...@@ -155,8 +155,7 @@ ...@@ -155,8 +155,7 @@
155 settings = extend({ 155 settings = extend({
156 payloadUnitStartIndicator: true, 156 payloadUnitStartIndicator: true,
157 pid: 0x00 157 pid: 0x00
158 }, options), 158 }, options);
159 pid;
160 159
161 // header 160 // header
162 // sync_byte 161 // sync_byte
...@@ -169,11 +168,11 @@ ...@@ -169,11 +168,11 @@
169 result = result.concat(makePsi(settings)); 168 result = result.concat(makePsi(settings));
170 169
171 // ensure the resulting packet is the correct size 170 // ensure the resulting packet is the correct size
172 result.length = videojs.hls.SegmentParser.MP2T_PACKET_LENGTH; 171 result.length = window.videojs.hls.SegmentParser.MP2T_PACKET_LENGTH;
173 return result; 172 return result;
174 }, 173 },
175 h264Type = videojs.hls.SegmentParser.STREAM_TYPES.h264, 174 h264Type = window.videojs.hls.SegmentParser.STREAM_TYPES.h264,
176 adtsType = videojs.hls.SegmentParser.STREAM_TYPES.adts; 175 adtsType = window.videojs.hls.SegmentParser.STREAM_TYPES.adts;
177 176
178 parser.parseSegmentBinaryData(new Uint8Array(makePacket({ 177 parser.parseSegmentBinaryData(new Uint8Array(makePacket({
179 programs: { 178 programs: {
......