mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Ensure force silence SampleConsumerWrapper has the right track type.
PiperOrigin-RevId: 670226122
This commit is contained in:
parent
207684ca66
commit
1d9276863c
@ -296,7 +296,8 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||||||
.setPcmEncoding(C.ENCODING_PCM_16BIT)
|
.setPcmEncoding(C.ENCODING_PCM_16BIT)
|
||||||
.build()));
|
.build()));
|
||||||
sampleConsumersByTrackType.put(
|
sampleConsumersByTrackType.put(
|
||||||
C.TRACK_TYPE_AUDIO, new SampleConsumerWrapper(wrappedAudioSampleConsumer, trackType));
|
C.TRACK_TYPE_AUDIO,
|
||||||
|
new SampleConsumerWrapper(wrappedAudioSampleConsumer, C.TRACK_TYPE_AUDIO));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// TODO(b/270533049): Remove the check below when implementing blank video frames generation.
|
// TODO(b/270533049): Remove the check below when implementing blank video frames generation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user