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
b3f485d7
authored
Dec 13, 2019
by
olly
Committed by
Oliver Woodman
Dec 18, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add an additional sanity check to FakeExtractorOutput
PiperOrigin-RevId: 285422885
parent
b7b3a158
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeExtractorOutput.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/FakeExtractorOutput.java
View file @
b3f485d7
...
@@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertWithMessage;
...
@@ -20,6 +20,7 @@ import static com.google.common.truth.Truth.assertWithMessage;
import
android.content.Context
;
import
android.content.Context
;
import
android.util.SparseArray
;
import
android.util.SparseArray
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.ExtractorOutput
;
import
com.google.android.exoplayer2.extractor.SeekMap
;
import
com.google.android.exoplayer2.extractor.SeekMap
;
import
java.io.File
;
import
java.io.File
;
...
@@ -69,6 +70,9 @@ public final class FakeExtractorOutput implements ExtractorOutput, Dumper.Dumpab
...
@@ -69,6 +70,9 @@ public final class FakeExtractorOutput implements ExtractorOutput, Dumper.Dumpab
@Override
@Override
public
void
seekMap
(
SeekMap
seekMap
)
{
public
void
seekMap
(
SeekMap
seekMap
)
{
if
(
seekMap
.
isSeekable
()
&&
seekMap
.
getDurationUs
()
==
C
.
TIME_UNSET
)
{
throw
new
IllegalStateException
(
"SeekMap cannot be seekable and have an unknown duration"
);
}
this
.
seekMap
=
seekMap
;
this
.
seekMap
=
seekMap
;
}
}
...
...
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