mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
Close InputStream after read
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144424329
This commit is contained in:
parent
1eede5d5bb
commit
f194df1149
1 changed files with 7 additions and 3 deletions
|
|
@ -71,9 +71,13 @@ public final class OfflineLicenseHelper<T extends ExoMediaCrypto> {
|
|||
throws IOException {
|
||||
DataSourceInputStream inputStream = new DataSourceInputStream(
|
||||
dataSource, new DataSpec(Uri.parse(manifestUriString)));
|
||||
inputStream.open();
|
||||
DashManifestParser parser = new DashManifestParser();
|
||||
return parser.parse(dataSource.getUri(), inputStream);
|
||||
try {
|
||||
inputStream.open();
|
||||
DashManifestParser parser = new DashManifestParser();
|
||||
return parser.parse(dataSource.getUri(), inputStream);
|
||||
} finally {
|
||||
inputStream.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue