Use inclusive language

This commit is contained in:
Rohit Singh 2024-04-17 15:43:54 +01:00
parent 1ab91a64c2
commit 0a436ad491
2 changed files with 4 additions and 4 deletions

View File

@ -161,12 +161,12 @@ public final class PesReader implements TsPayloadReader {
} }
/** /**
* Determines if the parser can consume a dummy end of input indication. * Determines if the parser can consume a synthesized empty pusi.
* *
* @param isModeHls {@code True} if operating in HLS (HTTP Live Streaming) mode, {@code false} * @param isModeHls {@code True} if operating in HLS (HTTP Live Streaming) mode, {@code false}
* otherwise. * otherwise.
*/ */
public boolean canConsumeDummyEndOfInput(boolean isModeHls) { public boolean canConsumeSynthesizedEmptyPusi(boolean isModeHls) {
// Pusi only payload to trigger end of sample data is only applicable if // Pusi only payload to trigger end of sample data is only applicable if
// pes does not have a length field and body is being read, another exclusion // pes does not have a length field and body is being read, another exclusion
// is due to H262 streams possibly having, in HLS mode, a pes across more than one segment // is due to H262 streams possibly having, in HLS mode, a pes across more than one segment

View File

@ -448,12 +448,12 @@ public final class TsExtractor implements Extractor {
} }
if (!fillBufferWithAtLeastOnePacket(input)) { if (!fillBufferWithAtLeastOnePacket(input)) {
// Send a synthesised empty pusi to allow for packetFinished to be triggered on the last unit. // Send a synthesized empty pusi to allow for packetFinished to be triggered on the last unit.
for (int i = 0; i < tsPayloadReaders.size(); i++) { for (int i = 0; i < tsPayloadReaders.size(); i++) {
TsPayloadReader payloadReader = tsPayloadReaders.valueAt(i); TsPayloadReader payloadReader = tsPayloadReaders.valueAt(i);
if (payloadReader instanceof PesReader) { if (payloadReader instanceof PesReader) {
PesReader pesReader = (PesReader) payloadReader; PesReader pesReader = (PesReader) payloadReader;
if (pesReader.canConsumeDummyEndOfInput(isModeHls)) { if (pesReader.canConsumeSynthesizedEmptyPusi(isModeHls)) {
pesReader.consume(new ParsableByteArray(), FLAG_PAYLOAD_UNIT_START_INDICATOR); pesReader.consume(new ParsableByteArray(), FLAG_PAYLOAD_UNIT_START_INDICATOR);
} }
} }