From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Wed, 5 Oct 2022 11:41:54 +0000 (+0100) Subject: When a buffered stream is paused or stopped, try to close the output device immediate... X-Git-Tag: 4.1-rc2~1^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06c69c69f316481e5fd24bf56fc5fd6ad32bebad;p=thirdparty%2Fshairport-sync.git When a buffered stream is paused or stopped, try to close the output device immediately. This will succeed if disable_standby mode is off. --- diff --git a/rtsp.c b/rtsp.c index 76395df9..81cd1b3f 100644 --- a/rtsp.c +++ b/rtsp.c @@ -2003,6 +2003,10 @@ void handle_setrateanchori(rtsp_conn_info *conn, rtsp_message *req, rtsp_message activity_monitor_signify_activity(0); conn->ap2_play_enabled = 0; reset_anchor_info(conn); + if (config.output->stop) { + debug(2, "Connection %d: Stop the output backend.", conn->connection_number); + config.output->stop(); + } } pthread_cleanup_pop(1); // unlock the conn->flush_mutex }