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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 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,9 +82,7 @@ public class HlsSampleSource implements SampleSource, Loader.Callback {
...
@@ -82,9 +82,7 @@ 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
();
TsExtractor
extractor
=
extractors
.
getFirst
();
if
(
extractor
.
isPrepared
())
{
if
(
extractor
.
isPrepared
())
{
trackCount
=
extractor
.
getTrackCount
();
trackCount
=
extractor
.
getTrackCount
();
...
@@ -98,6 +96,10 @@ public class HlsSampleSource implements SampleSource, Loader.Callback {
...
@@ -98,6 +96,10 @@ public class HlsSampleSource implements SampleSource, Loader.Callback {
}
}
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