762b7712 by David LaPalomento

Fix jshint issues

Remove some global references and break lines after the '+' operator.
1 parent 1c56b76c
......@@ -284,8 +284,8 @@
patTableId = data[offset];
if (patTableId !== 0x00) {
videojs.log('the table_id of the PAT should be 0x00 but was'
+ patTableId.toString(16));
videojs.log('the table_id of the PAT should be 0x00 but was' +
patTableId.toString(16));
}
// the current_next_indicator specifies whether this PAT is
......@@ -382,8 +382,8 @@
offset += 1 + data[offset];
}
if (data[offset] !== 0x02) {
videojs.log('The table_id of a PMT should be 0x02 but was '
+ data[offset].toString(16));
videojs.log('The table_id of a PMT should be 0x02 but was ' +
data[offset].toString(16));
}
// whether this PMT is currently applicable or is part of the
......
......@@ -27,7 +27,7 @@
0x09, 0x00, 0x00, 0x00, 0x00
],
extend = videojs.util.mergeOptions,
extend = window.videojs.util.mergeOptions,
testAudioTag,
testVideoTag,
......@@ -155,8 +155,7 @@
settings = extend({
payloadUnitStartIndicator: true,
pid: 0x00
}, options),
pid;
}, options);
// header
// sync_byte
......@@ -169,11 +168,11 @@
result = result.concat(makePsi(settings));
// ensure the resulting packet is the correct size
result.length = videojs.hls.SegmentParser.MP2T_PACKET_LENGTH;
result.length = window.videojs.hls.SegmentParser.MP2T_PACKET_LENGTH;
return result;
},
h264Type = videojs.hls.SegmentParser.STREAM_TYPES.h264,
adtsType = videojs.hls.SegmentParser.STREAM_TYPES.adts;
h264Type = window.videojs.hls.SegmentParser.STREAM_TYPES.h264,
adtsType = window.videojs.hls.SegmentParser.STREAM_TYPES.adts;
parser.parseSegmentBinaryData(new Uint8Array(makePacket({
programs: {
......