Sometimes when I try closing my program during video playback (note that I call AVPlayer::stop() in the destructor), I run into this endless loop with the log saying:
"stopping demuxer thread..."
"all avthread finished. try to exit demux thread<<<<<<"
"stopping demuxer thread..."
"all avthread finished. try to exit demux thread<<<<<<"
However, if I remove the stop in the destructor of my object, I get this:
What is the proper way to destroy the AVPlayer object? Am I doing something wrong?
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/44964915-endless-loop-when-stopping-and-destroying-avplayer?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F307703&utm_medium=issues&utm_source=github).
Sometimes when I try closing my program during video playback (note that I call AVPlayer::stop() in the destructor), I run into this endless loop with the log saying:
"stopping demuxer thread..." "all avthread finished. try to exit demux thread<<<<<<" "stopping demuxer thread..." "all avthread finished. try to exit demux thread<<<<<<"
However, if I remove the stop in the destructor of my object, I get this:
"stopping thread QtAV::VideoThread(0x1352b98)" "stopping thread QtAV::VideoThread(0x1352b98)" "stopping thread QtAV::VideoThread(0x1352b98)"
What is the proper way to destroy the AVPlayer object? Am I doing something wrong?