mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 21:37:26 +00:00
sigterm_handler() called exit(123) directly, bypassing avformat_close_input() and therefore any protocol level shutdown, such as the RTSP TEARDOWN. Set a flag instead and let the event loop leave through do_exit(), which keeps the 123 exit status. Add a hard exit on the 4th sigterm, similar to ffmpeg. Signed-off-by: Thomas Devoogdt <thomas@devoogdt.com>