Skip to content

Commit

Permalink
Merge pull request #498 from legerch/fix-terminate-hanging
Browse files Browse the repository at this point in the history
[player] Fix player hanging when terminate
  • Loading branch information
valbok authored Dec 4, 2024
2 parents e427293 + e5b376c commit 27566fc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/QtAVPlayer/qavplayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,13 @@ void QAVPlayerPrivate::terminate()
if (dev)
dev->abort(true);
loaderFuture.waitForFinished();
demuxerFuture.waitForFinished();
videoPlayFuture.waitForFinished();
audioPlayFuture.waitForFinished();

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

pendingPosition = 0;
pendingSeek = false;
currPts = 0.0;
Expand Down

0 comments on commit 27566fc

Please sign in to comment.