mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +00:00
InputStream creation for ContentDataSource changed
This commit is contained in:
parent
b77cc7c621
commit
8caad492d4
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ public final class ContentDataSource implements DataSource {
|
|||
try {
|
||||
uri = dataSpec.uri;
|
||||
assetFileDescriptor = resolver.openAssetFileDescriptor(uri, "r");
|
||||
inputStream = new FileInputStream(assetFileDescriptor.getFileDescriptor());
|
||||
inputStream = assetFileDescriptor.createInputStream();
|
||||
long skipped = inputStream.skip(dataSpec.position);
|
||||
if (skipped < dataSpec.position) {
|
||||
// We expect the skip to be satisfied in full. If it isn't then we're probably trying to
|
||||
|
|
|
|||
Loading…
Reference in a new issue