Commit f194df11 by eguven Committed by Oliver Woodman

Close InputStream after read

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=144424329
parent 1eede5d5
......@@ -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();
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment