Merge "Fix CTS tests" into rvc-dev am: 881b688f68
Change-Id: I7d588274ab732da753d3204233a4f9e8fbae1af0
This commit is contained in:
@@ -700,11 +700,14 @@ public final class MediaParser {
|
|||||||
mDataSource.mInputReader = seekableInputReader;
|
mDataSource.mInputReader = seekableInputReader;
|
||||||
|
|
||||||
// TODO: Apply parameters when creating extractor instances.
|
// TODO: Apply parameters when creating extractor instances.
|
||||||
|
if (mExtractor == null) {
|
||||||
if (mExtractorName != null) {
|
if (mExtractorName != null) {
|
||||||
mExtractor = EXTRACTOR_FACTORIES_BY_NAME.get(mExtractorName).createInstance();
|
mExtractor = EXTRACTOR_FACTORIES_BY_NAME.get(mExtractorName).createInstance();
|
||||||
} else if (mExtractor == null) {
|
mExtractor.init(new ExtractorOutputAdapter());
|
||||||
|
} else {
|
||||||
for (String parserName : mParserNamesPool) {
|
for (String parserName : mParserNamesPool) {
|
||||||
Extractor extractor = EXTRACTOR_FACTORIES_BY_NAME.get(parserName).createInstance();
|
Extractor extractor =
|
||||||
|
EXTRACTOR_FACTORIES_BY_NAME.get(parserName).createInstance();
|
||||||
try {
|
try {
|
||||||
if (extractor.sniff(mExtractorInput)) {
|
if (extractor.sniff(mExtractorInput)) {
|
||||||
mExtractorName = parserName;
|
mExtractorName = parserName;
|
||||||
@@ -725,6 +728,7 @@ public final class MediaParser {
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (isPendingSeek()) {
|
if (isPendingSeek()) {
|
||||||
mExtractor.seek(mPendingSeekPosition, mPendingSeekTimeUs);
|
mExtractor.seek(mPendingSeekPosition, mPendingSeekTimeUs);
|
||||||
|
|||||||
Reference in New Issue
Block a user