Commit 9a91482a by tonihei Committed by Oliver Woodman

Release streams in fake adaptive media period.

Releasing the media period should also release the sample streams
to allow resources to be cleaned up.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=168201377
parent 75d5adce
......@@ -54,6 +54,14 @@ public class FakeAdaptiveMediaPeriod extends FakeMediaPeriod
}
@Override
public void release() {
super.release();
for (ChunkSampleStream<FakeChunkSource> sampleStream : sampleStreams) {
sampleStream.release();
}
}
@Override
public void prepare(Callback callback, long positionUs) {
super.prepare(callback, positionUs);
this.callback = callback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment