|author||wm4 <wm4@nowhere>||2012-08-04 03:46:11 +0200|
|committer||wm4 <wm4@nowhere>||2012-08-04 19:59:56 +0200|
mplayer: never exit mplayer from within the play loop
The only place exit_player() should be called is the main() function. exit_player() should be the only function allowed to call exit(). This makes it easier to guarantee proper deinitialization, and allows using the --leak-report flag without showing false positives. The quit slave command now sets a flag only. It uses the same mechanism that's normally used to advance to the next file on the playlist, so the rest of the playback path should be able to react to the quit command quickly enough. That is, the player should react just as fast to quit requests in practice as before this commit. In reinit_audio_chain(), the player was actually exited if init_audio_filters() failed. Reuse the normal error handling path to handle this condition.
Diffstat (limited to 'mp_osd.h')
0 files changed, 0 insertions, 0 deletions