mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00
Disable the muxer watchdog if all tracks have ended.
PiperOrigin-RevId: 484512661 (cherry picked from commit 2390322a00a9e71f16dfe28088ae7cd3e462129f)
This commit is contained in:
parent
c02d477cc2
commit
a3de075b3d
@ -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…
x
Reference in New Issue
Block a user