Skip to content

v4.14.0.27-dev

@CtznSniiips CtznSniiips tagged this 15 Apr 20:44
Keep a WeakReference<Player> and a main-thread Handler to avoid leaking the player and to safely queue pending gains after async prefetches complete. Set playerRef in prefetchQueueGains and clear it in release; post a callback to the main thread to call queuePendingForNextTrack when prefetch finishes to cover race conditions. Also add necessary imports for Handler/Looper and WeakReference and a small formatting cleanup.
Assets 2
Loading