Skip to content

Commit

Permalink
Fix crash when starting progress report loop without active stream in…
Browse files Browse the repository at this point in the history
… video player
  • Loading branch information
nielsvanvelzen committed Dec 24, 2024
1 parent dae017c commit d349b79
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,8 @@ public void run() {

private void startPauseReportLoop() {
stopReportLoop();
reportingHelper.getValue().reportProgress(mFragment, this, getCurrentlyPlayingItem(), getCurrentStreamInfo(), mCurrentPosition * 10000, true);
if (mCurrentStreamInfo == null) return;
reportingHelper.getValue().reportProgress(mFragment, this, getCurrentlyPlayingItem(), mCurrentStreamInfo, mCurrentPosition * 10000, true);
mReportLoop = new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit d349b79

Please sign in to comment.