mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Use getConstructor().newInstance() in ExtractorSampleSource.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=126306436
This commit is contained in:
parent
2e77f02e7e
commit
a476e090bc
@ -296,7 +296,7 @@ public final class ExtractorSampleSource implements SampleSource, ExtractorOutpu
|
||||
Extractor[] extractors = new Extractor[defaultExtractorClasses.size()];
|
||||
for (int i = 0; i < extractors.length; i++) {
|
||||
try {
|
||||
extractors[i] = defaultExtractorClasses.get(i).newInstance();
|
||||
extractors[i] = defaultExtractorClasses.get(i).getConstructor().newInstance();
|
||||
} catch (Exception e) {
|
||||
// Should never happen.
|
||||
throw new IllegalStateException("Unexpected error creating default extractor", e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user