mirror of
https://github.com/samsonjs/media.git
synced 2026-04-25 14:47:40 +00:00
Disable the muxer watchdog if all tracks have ended.
PiperOrigin-RevId: 484512661
This commit is contained in:
parent
fc1eca10f4
commit
2390322a00
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) {
|
public void endTrack(@C.TrackType int trackType) {
|
||||||
trackTypeToIndex.delete(trackType);
|
trackTypeToIndex.delete(trackType);
|
||||||
|
if (trackTypeToIndex.size() == 0) {
|
||||||
|
abortScheduledExecutorService.shutdownNow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue