fix(android): handleZeroDurationIfNeeded ReturnCount within cap
android / Build + lint + test (push) Successful in 3m45s
android / Build + lint + test (push) Successful in 3m45s
This commit is contained in:
@@ -326,8 +326,8 @@ class PlayerController @Inject constructor(
|
|||||||
// buffers tracks, so duration is permanently 0 / TIME_UNSET -- without
|
// buffers tracks, so duration is permanently 0 / TIME_UNSET -- without
|
||||||
// this guard we rapid-advance through the entire local queue (and spam
|
// this guard we rapid-advance through the entire local queue (and spam
|
||||||
// /api/playback-errors) every time the user activates a UPnP route.
|
// /api/playback-errors) every time the user activates a UPnP route.
|
||||||
if (activeUpnpHolder.active.value != null) return
|
val current = queueRefs.getOrNull(idx)
|
||||||
val current = queueRefs.getOrNull(idx) ?: return
|
if (current == null || activeUpnpHolder.active.value != null) return
|
||||||
val duration = controller.duration
|
val duration = controller.duration
|
||||||
val isZeroDuration = duration <= 0L || duration == androidx.media3.common.C.TIME_UNSET
|
val isZeroDuration = duration <= 0L || duration == androidx.media3.common.C.TIME_UNSET
|
||||||
if (!isZeroDuration) return
|
if (!isZeroDuration) return
|
||||||
|
|||||||
Reference in New Issue
Block a user