mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Close ParsingLoadable input streams that fail to open.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=124836804
This commit is contained in:
parent
bd248ffee5
commit
a6b7cfb5e4
1 changed files with 1 additions and 1 deletions
|
|
@ -113,8 +113,8 @@ public final class ParsingLoadable<T> implements Loadable {
|
|||
@Override
|
||||
public final void load() throws IOException, InterruptedException {
|
||||
DataSourceInputStream inputStream = new DataSourceInputStream(dataSource, dataSpec);
|
||||
inputStream.open();
|
||||
try {
|
||||
inputStream.open();
|
||||
result = parser.parse(dataSource.getUri(), inputStream);
|
||||
} finally {
|
||||
inputStream.close();
|
||||
|
|
|
|||
Loading…
Reference in a new issue