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
2e1f9897
authored
Dec 03, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed issue in which setting a representation duration to unknown wasn't handled correctly.
parent
dc644ae8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
library/src/main/java/com/google/android/exoplayer/dash/DashChunkSource.java
library/src/main/java/com/google/android/exoplayer/dash/DashChunkSource.java
View file @
2e1f9897
...
...
@@ -72,14 +72,16 @@ public class DashChunkSource implements ChunkSource {
*/
public
DashChunkSource
(
DataSource
dataSource
,
FormatEvaluator
evaluator
,
Representation
...
representations
)
{
long
periodDurationUs
=
(
representations
[
0
].
periodDurationMs
==
-
1
)
?
-
1
:
representations
[
0
].
periodDurationMs
*
1000
;
this
.
dataSource
=
dataSource
;
this
.
evaluator
=
evaluator
;
this
.
formats
=
new
Format
[
representations
.
length
];
this
.
extractors
=
new
HashMap
<
String
,
Extractor
>();
this
.
segmentIndexes
=
new
HashMap
<
String
,
DashSegmentIndex
>();
this
.
representations
=
new
HashMap
<
String
,
Representation
>();
this
.
trackInfo
=
new
TrackInfo
(
representations
[
0
].
format
.
mimeType
,
representations
[
0
].
periodDurationMs
*
1000
);
this
.
trackInfo
=
new
TrackInfo
(
representations
[
0
].
format
.
mimeType
,
periodDurationUs
);
this
.
evaluation
=
new
Evaluation
();
int
maxWidth
=
0
;
int
maxHeight
=
0
;
...
...
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