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
456d53e1
authored
Nov 13, 2014
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Minor cleanup.
parent
2d97d31a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
library/src/main/java/com/google/android/exoplayer/util/ManifestFetcher.java
library/src/main/java/com/google/android/exoplayer/util/ManifestFetcher.java
View file @
456d53e1
...
@@ -171,7 +171,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
...
@@ -171,7 +171,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
loader
=
new
Loader
(
"manifestLoader"
);
loader
=
new
Loader
(
"manifestLoader"
);
}
}
if
(!
loader
.
isLoading
())
{
if
(!
loader
.
isLoading
())
{
currentLoadable
=
new
ManifestLoadable
(
userAgent
);
currentLoadable
=
new
ManifestLoadable
();
loader
.
startLoading
(
currentLoadable
,
this
);
loader
.
startLoading
(
currentLoadable
,
this
);
}
}
}
}
...
@@ -221,7 +221,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
...
@@ -221,7 +221,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
this
.
callbackLooper
=
callbackLooper
;
this
.
callbackLooper
=
callbackLooper
;
this
.
wrappedCallback
=
wrappedCallback
;
this
.
wrappedCallback
=
wrappedCallback
;
singleUseLoader
=
new
Loader
(
"manifestLoader:single"
);
singleUseLoader
=
new
Loader
(
"manifestLoader:single"
);
singleUseLoadable
=
new
ManifestLoadable
(
userAgent
);
singleUseLoadable
=
new
ManifestLoadable
();
}
}
public
void
startLoading
()
{
public
void
startLoading
()
{
...
@@ -269,15 +269,9 @@ public class ManifestFetcher<T> implements Loader.Callback {
...
@@ -269,15 +269,9 @@ public class ManifestFetcher<T> implements Loader.Callback {
private
static
final
int
TIMEOUT_MILLIS
=
10000
;
private
static
final
int
TIMEOUT_MILLIS
=
10000
;
private
final
String
userAgent
;
/* package */
volatile
T
result
;
/* package */
volatile
T
result
;
private
volatile
boolean
isCanceled
;
private
volatile
boolean
isCanceled
;
public
ManifestLoadable
(
String
userAgent
)
{
this
.
userAgent
=
userAgent
;
}
@Override
@Override
public
void
cancelLoad
()
{
public
void
cancelLoad
()
{
// We don't actually cancel anything, but we need to record the cancellation so that
// We don't actually cancel anything, but we need to record the cancellation so that
...
...
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