Fix tracing under offload.

Currently doSomeWork is never closed and so tracing is deceiving.

See https://screenshot.googleplex.com/eZDzn5APpBNnhe5

PiperOrigin-RevId: 474755816
This commit is contained in:
yschimke 2022-09-16 08:26:54 +00:00 committed by Marc Baechinger
parent 702419dd22
commit 005b73c82a

View file

@ -1084,7 +1084,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
if (sleepingForOffload || playbackInfo.playbackState == Player.STATE_ENDED) {
// No need to schedule next work.
return;
} else if (isPlaying || playbackInfo.playbackState == Player.STATE_BUFFERING) {
// We are actively playing or waiting for data to be ready. Schedule next work quickly.
scheduleNextWork(operationStartTimeMs, ACTIVE_INTERVAL_MS);