Commit a3de075b by samrobinson Committed by microkatz

Disable the muxer watchdog if all tracks have ended.

PiperOrigin-RevId: 484512661
(cherry picked from commit 2390322a)
parent c02d477c
......@@ -195,6 +195,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
*/
public void endTrack(@C.TrackType int trackType) {
trackTypeToIndex.delete(trackType);
if (trackTypeToIndex.size() == 0) {
abortScheduledExecutorService.shutdownNow();
}
}
/**
......
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