Disable the muxer watchdog if all tracks have ended.

PiperOrigin-RevId: 484512661
This commit is contained in:
samrobinson 2022-10-28 13:13:05 +00:00 committed by microkatz
parent 3069d8130b
commit bcc2fe4007

View File

@ -195,6 +195,9 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
*/ */
public void endTrack(@C.TrackType int trackType) { public void endTrack(@C.TrackType int trackType) {
trackTypeToIndex.delete(trackType); trackTypeToIndex.delete(trackType);
if (trackTypeToIndex.size() == 0) {
abortScheduledExecutorService.shutdownNow();
}
} }
/** /**