Skip to content

Commit

Permalink
timob-24082 wrong startOffset value fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fmerzadyan committed Nov 15, 2016
1 parent eed1dbb commit 56d1a79
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file not shown.
Expand Up @@ -104,7 +104,7 @@ protected void initializeAndPlay()
}
// Why mp.setDataSource(afd) doesn't work is a problem for another day.
// http://groups.google.com/group/android-developers/browse_thread/thread/225c4c150be92416
mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());
mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset()+1, afd.getLength());
} catch (IOException e) {
Log.e(TAG, "Error setting file descriptor: ", e);
} finally {
Expand Down

0 comments on commit 56d1a79

Please sign in to comment.