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
4c1fb0c9
authored
Jul 23, 2015
by
Oliver Woodman
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Don't catch API 19 exception from newInstance.
parent
a44a78c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
library/src/main/java/com/google/android/exoplayer/extractor/ExtractorSampleSource.java
library/src/main/java/com/google/android/exoplayer/text/TextTrackRenderer.java
library/src/main/java/com/google/android/exoplayer/extractor/ExtractorSampleSource.java
View file @
4c1fb0c9
...
...
@@ -247,7 +247,9 @@ public class ExtractorSampleSource implements SampleSource, SampleSourceReader,
for
(
int
i
=
0
;
i
<
extractors
.
length
;
i
++)
{
try
{
extractors
[
i
]
=
DEFAULT_EXTRACTOR_CLASSES
.
get
(
i
).
newInstance
();
}
catch
(
ReflectiveOperationException
e
)
{
}
catch
(
InstantiationException
e
)
{
throw
new
IllegalStateException
(
"Unexpected error creating default extractor"
,
e
);
}
catch
(
IllegalAccessException
e
)
{
throw
new
IllegalStateException
(
"Unexpected error creating default extractor"
,
e
);
}
}
...
...
library/src/main/java/com/google/android/exoplayer/text/TextTrackRenderer.java
View file @
4c1fb0c9
...
...
@@ -141,7 +141,9 @@ public class TextTrackRenderer extends TrackRenderer implements Callback {
for
(
int
i
=
0
;
i
<
subtitleParsers
.
length
;
i
++)
{
try
{
subtitleParsers
[
i
]
=
DEFAULT_PARSER_CLASSES
.
get
(
i
).
newInstance
();
}
catch
(
ReflectiveOperationException
e
)
{
}
catch
(
InstantiationException
e
)
{
throw
new
IllegalStateException
(
"Unexpected error creating default parser"
,
e
);
}
catch
(
IllegalAccessException
e
)
{
throw
new
IllegalStateException
(
"Unexpected error creating default parser"
,
e
);
}
}
...
...
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