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
6a3b6698
authored
Oct 09, 2016
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Revert unrelated ContentDataSource change
parent
5a72ca6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
library/src/main/java/com/google/android/exoplayer2/upstream/ContentDataSource.java
library/src/main/java/com/google/android/exoplayer2/upstream/ContentDataSource.java
View file @
6a3b6698
...
@@ -142,13 +142,22 @@ public final class ContentDataSource implements DataSource {
...
@@ -142,13 +142,22 @@ public final class ContentDataSource implements DataSource {
@Override
@Override
public
void
close
()
throws
ContentDataSourceException
{
public
void
close
()
throws
ContentDataSourceException
{
uri
=
null
;
uri
=
null
;
if
(
inputStream
!=
null
)
{
try
{
try
{
if
(
inputStream
!=
null
)
{
inputStream
.
close
();
inputStream
.
close
();
}
}
catch
(
IOException
e
)
{
throw
new
ContentDataSourceException
(
e
);
}
finally
{
inputStream
=
null
;
try
{
if
(
assetFileDescriptor
!=
null
)
{
assetFileDescriptor
.
close
();
}
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
ContentDataSourceException
(
e
);
throw
new
ContentDataSourceException
(
e
);
}
finally
{
}
finally
{
inputStream
=
null
;
assetFileDescriptor
=
null
;
if
(
opened
)
{
if
(
opened
)
{
opened
=
false
;
opened
=
false
;
if
(
listener
!=
null
)
{
if
(
listener
!=
null
)
{
...
@@ -157,13 +166,6 @@ public final class ContentDataSource implements DataSource {
...
@@ -157,13 +166,6 @@ public final class ContentDataSource implements DataSource {
}
}
}
}
}
}
if
(
assetFileDescriptor
!=
null
)
{
try
{
assetFileDescriptor
.
close
();
}
catch
(
Exception
e
)
{
}
assetFileDescriptor
=
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