Skip to content

Commit

Permalink
Remove unneccessary method parameter
Browse files Browse the repository at this point in the history
The value already exists as a class field.

#minor-release

PiperOrigin-RevId: 572200771
  • Loading branch information
tonihei authored and copybara-github committed Oct 10, 2023
1 parent f20d18e commit e5fa0c2
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3725,7 +3725,7 @@ public AudioTrackInfo(
== RendererCapabilities.HARDWARE_ACCELERATION_SUPPORTED;
selectionEligibility =
evaluateSelectionEligibility(
parameters, formatSupport, hasMappedVideoTracks, requiredAdaptiveSupport);
formatSupport, hasMappedVideoTracks, requiredAdaptiveSupport);
}

@Override
Expand Down Expand Up @@ -3799,7 +3799,6 @@ public int compareTo(AudioTrackInfo other) {
}

private @SelectionEligibility int evaluateSelectionEligibility(
Parameters params,
@Capabilities int rendererSupport,
boolean hasMappedVideoTracks,
@AdaptiveSupport int requiredAdaptiveSupport) {
Expand All @@ -3809,8 +3808,8 @@ public int compareTo(AudioTrackInfo other) {
if (!isWithinConstraints && !parameters.exceedAudioConstraintsIfNecessary) {
return SELECTION_ELIGIBILITY_NO;
}
if (params.audioOffloadPreferences.audioOffloadMode == AUDIO_OFFLOAD_MODE_REQUIRED
&& !rendererSupportsOffload(params, rendererSupport, format)) {
if (parameters.audioOffloadPreferences.audioOffloadMode == AUDIO_OFFLOAD_MODE_REQUIRED
&& !rendererSupportsOffload(parameters, rendererSupport, format)) {
return SELECTION_ELIGIBILITY_NO;
}
return isSupported(rendererSupport, /* allowExceedsCapabilities= */ false)
Expand All @@ -3819,7 +3818,7 @@ public int compareTo(AudioTrackInfo other) {
&& !parameters.forceHighestSupportedBitrate
&& !parameters.forceLowestBitrate
&& (parameters.allowMultipleAdaptiveSelections || !hasMappedVideoTracks)
&& params.audioOffloadPreferences.audioOffloadMode != AUDIO_OFFLOAD_MODE_REQUIRED
&& parameters.audioOffloadPreferences.audioOffloadMode != AUDIO_OFFLOAD_MODE_REQUIRED
&& (rendererSupport & requiredAdaptiveSupport) != 0
? SELECTION_ELIGIBILITY_ADAPTIVE
: SELECTION_ELIGIBILITY_FIXED;
Expand Down

0 comments on commit e5fa0c2

Please sign in to comment.