Please sign in to comment.
Fix SIGINT/SIGTERM handling during video playback.
This was broken when SignalHandler was introduced. There were two problems: 1/ Calling QCoreApplication::exit()/quit() doesn't actually make the program exit if it is in the video playback loop since we take over the UI event loop. This has been fixed by periodically checking SignalHandler::IsExiting() and setting TV::wantsToExit if it is true. 2/ The VideoOutputXv already had a signal handler for SIGINT, but so when we exit playback the first time we were resetting the SIGINT handler. This has been fixed by using the SignalHandler::SetHandler() method introduced in the last commit instead of registering a signal handler ourselves and making the new signal handler call QCoreApplication::exit() instead of exit().
- Loading branch information...
Showing with 28 additions and 11 deletions.