From 0e6ca7b7b2f2dc4706496a5d1f649e35dcf744c5 Mon Sep 17 00:00:00 2001 From: Mike Brady <4265913+mikebrady@users.noreply.github.com> Date: Sun, 14 Jun 2026 15:21:11 +0100 Subject: [PATCH] When an immediate flush is requested, reset the PTP clock anchor information immediately to disable clocking until play is resumed. --- rtsp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rtsp.c b/rtsp.c index 0691d5da..755562d1 100644 --- a/rtsp.c +++ b/rtsp.c @@ -1353,8 +1353,12 @@ void handle_flushbuffered(rtsp_conn_info *conn, rtsp_message *req, rtsp_message ", flushUntilSeq: %" PRIu64 ".", conn->connection_number, flushUntilTS, flushUntilSeq & 0x7fffff); conn->ap2_play_enabled = 0; // stop trying to play audio - ptp_send_control_message_string( - "P"); // "P"ause signify clock no longer valid and will be restarted by a subsequent play + // ptp_send_control_message_string( + // "P"); // "P"ause signify clock no longer valid and will be restarted by a subsequent + // play + // debug(1, "FLUSHBUFFERED calling reset_ptp_anchor_info"); + reset_ptp_anchor_info( + conn); // stop the clock for an immediate flush until it is restarted using SETRATEANCHORI } else { // look for a record slot that isn't in use unsigned int i = 0;