-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
f3fb6f0
commit f9a46e0
Showing
2 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters