crash fixes

This commit is contained in:
Yuriy Liskov
2025-06-17 21:24:51 +03:00
parent 2be2487741
commit a9ceb82cff
3 changed files with 7 additions and 2 deletions

View File

@@ -263,6 +263,10 @@ public class VideoStateController extends BasePlayerController {
@Override
public void onSpeedClicked(boolean enabled) {
if (getVideo() == null) {
return;
}
float lastSpeed = getPlayerData().getSpeed(getVideo().channelId);
if (Helpers.floatEquals(lastSpeed, 1.0f)) {
lastSpeed = getPlayerData().getLastSpeed();