QtAV
QtAV copied to clipboard
Wait for the PositionWatcher thread to stop
Without this change closing a AVPlayer might crash because the PositionWatcher thread has not stopped before the AVPlayer is destroyed.
a simple watcher.wait() will do the same as your loop