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
8c07847b
authored
Nov 20, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Properly propagate errors that occur during preparation.
parent
b501f8ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
14 deletions
library/src/main/java/com/google/android/exoplayer/hls/HlsSampleSource.java
library/src/main/java/com/google/android/exoplayer/hls/HlsSampleSource.java
View file @
8c07847b
...
@@ -82,21 +82,23 @@ public class HlsSampleSource implements SampleSource, Loader.Callback {
...
@@ -82,21 +82,23 @@ public class HlsSampleSource implements SampleSource, Loader.Callback {
loader
=
new
Loader
(
"Loader:HLS"
);
loader
=
new
Loader
(
"Loader:HLS"
);
}
}
continueBufferingInternal
();
continueBufferingInternal
();
if
(
extractors
.
isEmpty
())
{
if
(
!
extractors
.
isEmpty
())
{
return
false
;
TsExtractor
extractor
=
extractors
.
getFirst
()
;
}
if
(
extractor
.
isPrepared
())
{
TsExtractor
extractor
=
extractors
.
getFirs
t
();
trackCount
=
extractor
.
getTrackCoun
t
();
if
(
extractor
.
isPrepared
())
{
trackEnabledStates
=
new
boolean
[
trackCount
];
trackCount
=
extractor
.
getTrackCount
()
;
pendingDiscontinuities
=
new
boolean
[
trackCount
]
;
trackEnabledStates
=
new
boolean
[
trackCount
];
downstreamMediaFormats
=
new
MediaFormat
[
trackCount
];
pendingDiscontinuities
=
new
boolean
[
trackCount
];
trackInfos
=
new
TrackInfo
[
trackCount
];
downstreamMediaFormats
=
new
MediaFormat
[
trackCount
];
for
(
int
i
=
0
;
i
<
trackCount
;
i
++)
{
trackInfos
=
new
TrackInfo
[
trackCount
]
;
MediaFormat
format
=
extractor
.
getFormat
(
i
)
;
for
(
int
i
=
0
;
i
<
trackCount
;
i
++)
{
trackInfos
[
i
]
=
new
TrackInfo
(
format
.
mimeType
,
chunkSource
.
getDurationUs
());
MediaFormat
format
=
extractor
.
getFormat
(
i
);
}
trackInfos
[
i
]
=
new
TrackInfo
(
format
.
mimeType
,
chunkSource
.
getDurationUs
())
;
prepared
=
true
;
}
}
prepared
=
true
;
}
if
(!
prepared
&&
currentLoadableException
!=
null
)
{
throw
currentLoadableException
;
}
}
return
prepared
;
return
prepared
;
}
}
...
...
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