mirror of
https://github.com/androidx/media.git
synced 2025-05-04 22:20:47 +08:00
Fix tracing under offload.
Currently doSomeWork is never closed and so tracing is deceiving. See https://screenshot.googleplex.com/eZDzn5APpBNnhe5 PiperOrigin-RevId: 474755816 (cherry picked from commit 005b73c82a1a3264a7167ffdf93a9387c4d22b95)
This commit is contained in:
parent
eb6cf356bb
commit
3af297101c
@ -1084,7 +1084,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
|||||||
|
|
||||||
if (sleepingForOffload || playbackInfo.playbackState == Player.STATE_ENDED) {
|
if (sleepingForOffload || playbackInfo.playbackState == Player.STATE_ENDED) {
|
||||||
// No need to schedule next work.
|
// No need to schedule next work.
|
||||||
return;
|
|
||||||
} else if (isPlaying || playbackInfo.playbackState == Player.STATE_BUFFERING) {
|
} else if (isPlaying || playbackInfo.playbackState == Player.STATE_BUFFERING) {
|
||||||
// We are actively playing or waiting for data to be ready. Schedule next work quickly.
|
// We are actively playing or waiting for data to be ready. Schedule next work quickly.
|
||||||
scheduleNextWork(operationStartTimeMs, ACTIVE_INTERVAL_MS);
|
scheduleNextWork(operationStartTimeMs, ACTIVE_INTERVAL_MS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user