When an immediate flush is requested, reset the PTP clock anchor information immediately to disable clocking until play is resumed.

This commit is contained in:
Mike Brady
2026-06-14 15:21:11 +01:00
parent 1e583f0a1e
commit 0e6ca7b7b2
+6 -2
View File
@@ -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;