mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Minor style tweaks.
This commit is contained in:
parent
bb9e34f512
commit
e246970a20
1 changed files with 4 additions and 4 deletions
|
|
@ -91,12 +91,12 @@ public final class FrameworkSampleSource implements SampleSource {
|
||||||
public boolean prepare() throws IOException {
|
public boolean prepare() throws IOException {
|
||||||
if (!prepared) {
|
if (!prepared) {
|
||||||
extractor = new MediaExtractor();
|
extractor = new MediaExtractor();
|
||||||
|
if (context != null) {
|
||||||
if (context != null)
|
|
||||||
extractor.setDataSource(context, uri, headers);
|
extractor.setDataSource(context, uri, headers);
|
||||||
else
|
} else {
|
||||||
extractor.setDataSource(fileDescriptor, fileDescriptorOffset, fileDescriptorLength);
|
extractor.setDataSource(fileDescriptor, fileDescriptorOffset, fileDescriptorLength);
|
||||||
|
}
|
||||||
|
|
||||||
trackStates = new int[extractor.getTrackCount()];
|
trackStates = new int[extractor.getTrackCount()];
|
||||||
pendingDiscontinuities = new boolean[trackStates.length];
|
pendingDiscontinuities = new boolean[trackStates.length];
|
||||||
trackInfos = new TrackInfo[trackStates.length];
|
trackInfos = new TrackInfo[trackStates.length];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue