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
f60d5a14
authored
May 29, 2020
by
olly
Committed by
Oliver Woodman
May 29, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove logging that was submitted in error
PiperOrigin-RevId: 313806075
parent
496a315d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
library/core/src/main/java/com/google/android/exoplayer2/offline/SegmentDownloader.java
library/core/src/main/java/com/google/android/exoplayer2/offline/SegmentDownloader.java
View file @
f60d5a14
...
...
@@ -31,10 +31,8 @@ import com.google.android.exoplayer2.upstream.cache.CacheKeyFactory;
import
com.google.android.exoplayer2.upstream.cache.CacheWriter
;
import
com.google.android.exoplayer2.upstream.cache.ContentMetadata
;
import
com.google.android.exoplayer2.util.Assertions
;
import
com.google.android.exoplayer2.util.Log
;
import
com.google.android.exoplayer2.util.PriorityTaskManager
;
import
com.google.android.exoplayer2.util.PriorityTaskManager.PriorityTooLowException
;
import
com.google.android.exoplayer2.util.SystemClock
;
import
com.google.android.exoplayer2.util.Util
;
import
java.io.IOException
;
import
java.util.ArrayList
;
...
...
@@ -220,23 +218,17 @@ public abstract class SegmentDownloader<M extends FilterableManifest<M>> impleme
}
}
long
timer
=
0
;
@Override
public
final
void
remove
()
{
Cache
cache
=
Assertions
.
checkNotNull
(
cacheDataSourceFactory
.
getCache
());
CacheKeyFactory
cacheKeyFactory
=
cacheDataSourceFactory
.
getCacheKeyFactory
();
CacheDataSource
dataSource
=
cacheDataSourceFactory
.
createDataSourceForRemovingDownload
();
try
{
timer
=
SystemClock
.
DEFAULT
.
elapsedRealtime
();
M
manifest
=
getManifest
(
dataSource
,
manifestDataSpec
);
Log
.
e
(
"XXX"
,
"E1\t"
+
(
SystemClock
.
DEFAULT
.
elapsedRealtime
()
-
timer
));
timer
=
SystemClock
.
DEFAULT
.
elapsedRealtime
();
List
<
Segment
>
segments
=
getSegments
(
dataSource
,
manifest
,
true
);
for
(
int
i
=
0
;
i
<
segments
.
size
();
i
++)
{
cache
.
removeResource
(
cacheKeyFactory
.
buildCacheKey
(
segments
.
get
(
i
).
dataSpec
));
}
Log
.
e
(
"XXX"
,
"E2\t"
+
(
SystemClock
.
DEFAULT
.
elapsedRealtime
()
-
timer
));
}
catch
(
IOException
e
)
{
// Ignore exceptions when removing.
}
finally
{
...
...
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