When a buffered stream is paused or stopped, try to close the output device immediately. This will succeed if disable_standby mode is off.

This commit is contained in:
Mike Brady
2022-10-05 12:41:54 +01:00
parent fdc9531a3b
commit 06c69c69f3
+4
View File
@@ -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
}