Disable the muxer watchdog if all tracks have ended.

PiperOrigin-RevId: 484512661
(cherry picked from commit 2390322a00a9e71f16dfe28088ae7cd3e462129f)
This commit is contained in:
samrobinson 2022-10-28 13:13:05 +00:00 committed by microkatz
parent c02d477cc2
commit a3de075b3d

View File

@ -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();
}
}
/**