From 38aa2f1cb33472e9a8f00f5aebad8638a1f86733 Mon Sep 17 00:00:00 2001 From: Niels van Velzen Date: Fri, 3 Jan 2025 22:32:27 +0100 Subject: [PATCH] Prevent seeking from crashing app if video info is not initialized yet --- .../org/jellyfin/androidtv/ui/playback/PlaybackController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java b/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java index 494ba4e203..622d75da05 100644 --- a/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java +++ b/app/src/main/java/org/jellyfin/androidtv/ui/playback/PlaybackController.java @@ -901,6 +901,8 @@ public void seek(long pos, boolean skipToNext) { // set seekPosition so real position isn't used until playback starts again mSeekPosition = pos; + if (mCurrentStreamInfo == null) return; + // rebuild the stream // if an older device uses exoplayer to play a transcoded stream but falls back to the generic http stream instead of hls, rebuild the stream if (!mVideoManager.isSeekable()) {