mirror of
https://github.com/samsonjs/media.git
synced 2026-04-05 11:15:46 +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 {
|
||||
if (!prepared) {
|
||||
extractor = new MediaExtractor();
|
||||
|
||||
if (context != null)
|
||||
if (context != null) {
|
||||
extractor.setDataSource(context, uri, headers);
|
||||
else
|
||||
} else {
|
||||
extractor.setDataSource(fileDescriptor, fileDescriptorOffset, fileDescriptorLength);
|
||||
|
||||
}
|
||||
|
||||
trackStates = new int[extractor.getTrackCount()];
|
||||
pendingDiscontinuities = new boolean[trackStates.length];
|
||||
trackInfos = new TrackInfo[trackStates.length];
|
||||
|
|
|
|||
Loading…
Reference in a new issue