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
a43dd6ba
authored
Apr 22, 2015
by
Nati Dykstein
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update AssetDataSource.java
parent
647d9bed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
library/src/main/java/com/google/android/exoplayer/upstream/AssetDataSource.java
library/src/main/java/com/google/android/exoplayer/upstream/AssetDataSource.java
View file @
a43dd6ba
...
...
@@ -61,7 +61,7 @@ public final class AssetDataSource implements DataSource {
* @param listener An optional listener. Specify {@code null} for no listener.
*/
public
AssetDataSource
(
AssetManager
assetManager
,
TransferListener
listener
)
{
this
.
assetManager
=
assetManager
;
this
.
assetManager
=
assetManager
;
this
.
listener
=
listener
;
}
...
...
@@ -105,19 +105,18 @@ public final class AssetDataSource implements DataSource {
listener
.
onBytesTransferred
(
bytesRead
);
}
}
Log
.
i
(
"AssetDataSource"
,
"read(). bytesRead = "
+
bytesRead
);
return
bytesRead
;
}
}
@Override
public
void
close
()
throws
File
DataSourceException
{
public
void
close
()
throws
Asset
DataSourceException
{
if
(
assetInputStream
!=
null
)
{
try
{
assetInputStream
.
close
();
}
catch
(
IOException
e
)
{
throw
new
File
DataSourceException
(
e
);
throw
new
Asset
DataSourceException
(
e
);
}
finally
{
assetInputStream
=
null
;
...
...
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