mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +00:00
Disable the muxer watchdog if all tracks have ended.
PiperOrigin-RevId: 484512661
This commit is contained in:
parent
3069d8130b
commit
bcc2fe4007
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue