Skip to content

Commit

Permalink
Merge pull request #500 from valbok/immediate-exit
Browse files Browse the repository at this point in the history
Abort before waiting
  • Loading branch information
valbok authored Dec 4, 2024
2 parents 27566fc + f70581c commit e34d4ae
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/QtAVPlayer/qavplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,11 @@ void QAVPlayerPrivate::terminate()
subtitleClock.clear();
if (dev)
dev->abort(true);
demuxer.abort();
demuxerFuture.waitForFinished();
loaderFuture.waitForFinished();
videoPlayFuture.waitForFinished();
audioPlayFuture.waitForFinished();

demuxer.abort();
demuxerFuture.waitForFinished();
demuxer.abort(false);

pendingPosition = 0;
Expand Down

0 comments on commit e34d4ae

Please sign in to comment.