mirror of
https://github.com/androidx/media.git
synced 2025-05-18 13:09:56 +08:00
Reinstate buffer discard for SmoothStreaming
Now we have a ChunkSampleStream.discardBuffer, we need to call it from SsMediaPeriod as well as for the DASH case. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=175675427
This commit is contained in:
parent
b30b786350
commit
22b95032b3
@ -139,7 +139,9 @@ import java.util.ArrayList;
|
||||
|
||||
@Override
|
||||
public void discardBuffer(long positionUs) {
|
||||
// Do nothing.
|
||||
for (ChunkSampleStream<SsChunkSource> sampleStream : sampleStreams) {
|
||||
sampleStream.discardBuffer(positionUs);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user