Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
211a2dfd
authored
Oct 11, 2018
by
Brandon Davis
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Ensure formats have unique ids
parent
a5b72762
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
library/core/src/test/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelectorTest.java
library/core/src/test/java/com/google/android/exoplayer2/trackselection/DefaultTrackSelectorTest.java
View file @
211a2dfd
...
...
@@ -1062,10 +1062,10 @@ public final class DefaultTrackSelectorTest {
trackSelector
.
setParameters
(
new
ParametersBuilder
().
setForceLowestBitrate
(
true
).
build
());
Format
lowerBitrateFormat
=
Format
.
createAudioSampleFormat
(
"
audio
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
15000
,
Format
.
createAudioSampleFormat
(
"
lowerBitrate
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
15000
,
Format
.
NO_VALUE
,
2
,
44100
,
null
,
null
,
0
,
null
);
Format
higherBitrateFormat
=
Format
.
createAudioSampleFormat
(
"
audio
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
30000
,
Format
.
createAudioSampleFormat
(
"
higherBitrate
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
30000
,
Format
.
NO_VALUE
,
2
,
44100
,
null
,
null
,
0
,
null
);
TrackSelectorResult
result
=
...
...
@@ -1089,10 +1089,10 @@ public final class DefaultTrackSelectorTest {
trackSelector
.
setParameters
(
new
ParametersBuilder
().
setForceHighestSupportedBitrate
(
true
).
build
());
Format
lowerBitrateFormat
=
Format
.
createAudioSampleFormat
(
"
audio
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
15000
,
Format
.
createAudioSampleFormat
(
"
lowerBitrate
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
15000
,
Format
.
NO_VALUE
,
2
,
44100
,
null
,
null
,
0
,
null
);
Format
higherBitrateFormat
=
Format
.
createAudioSampleFormat
(
"
audio
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
30000
,
Format
.
createAudioSampleFormat
(
"
higherBitrate
Format"
,
MimeTypes
.
AUDIO_AAC
,
null
,
30000
,
Format
.
NO_VALUE
,
2
,
44100
,
null
,
null
,
0
,
null
);
TrackSelectorResult
result
=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment