mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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 {
|
throws IOException {
|
||||||
DataSourceInputStream inputStream = new DataSourceInputStream(
|
DataSourceInputStream inputStream = new DataSourceInputStream(
|
||||||
dataSource, new DataSpec(Uri.parse(manifestUriString)));
|
dataSource, new DataSpec(Uri.parse(manifestUriString)));
|
||||||
inputStream.open();
|
try {
|
||||||
DashManifestParser parser = new DashManifestParser();
|
inputStream.open();
|
||||||
return parser.parse(dataSource.getUri(), inputStream);
|
DashManifestParser parser = new DashManifestParser();
|
||||||
|
return parser.parse(dataSource.getUri(), inputStream);
|
||||||
|
} finally {
|
||||||
|
inputStream.close();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue