Prevent seeking from crashing app if video info is not initialized yet

This commit is contained in:
Niels van Velzen
2025-01-03 22:32:27 +01:00
committed by Niels van Velzen
parent d91d873c61
commit 38aa2f1cb3

View File

@ -901,6 +901,8 @@ public class PlaybackController implements PlaybackControllerNotifiable {
// 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()) {