Fix ListHelperTest failure caused by immutable list being used
This commit is contained in:
parent
cacce6d2d0
commit
f4fe5fcb16
2 changed files with 7 additions and 6 deletions
|
|
@ -230,14 +230,15 @@ public final class ListHelper {
|
|||
}
|
||||
|
||||
/**
|
||||
* Return the index of the default stream in the list, based on the parameters
|
||||
* defaultResolution and defaultFormat.
|
||||
* Return the index of the default stream in the list, that will be sorted in the process, based
|
||||
* on the parameters defaultResolution and defaultFormat.
|
||||
*
|
||||
* @param defaultResolution the default resolution to look for
|
||||
* @param bestResolutionKey key of the best resolution
|
||||
* @param defaultFormat the default format to look for
|
||||
* @param videoStreams list of the video streams to check
|
||||
* @return index of the default resolution&format
|
||||
* @param videoStreams a mutable list of the video streams to check (it will be sorted in
|
||||
* place)
|
||||
* @return index of the default resolution&format in the sorted videoStreams
|
||||
*/
|
||||
static int getDefaultResolutionIndex(final String defaultResolution,
|
||||
final String bestResolutionKey,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue