Skip to content

Commit

Permalink
Fix crash when trying to report playback progress when there is no cu…
Browse files Browse the repository at this point in the history
…rrent stream
  • Loading branch information
nielsvanvelzen committed Dec 5, 2024
1 parent 2fea546 commit 006a6d0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,8 @@ private long getTimeShiftedProgress() {
}

private void startReportLoop() {
if (mCurrentStreamInfo == null) return;

stopReportLoop();
reportingHelper.getValue().reportProgress(mFragment, this, getCurrentlyPlayingItem(), getCurrentStreamInfo(), mCurrentPosition * 10000, false);
mReportLoop = new Runnable() {
Expand Down

0 comments on commit 006a6d0

Please sign in to comment.