Quieten a few debug mssages, slightly shorten the minimum lead time needed for good initial sync.

This commit is contained in:
Mike Brady
2021-12-22 13:47:49 +00:00
parent ce7bbd3999
commit 30b9d15e36
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1063,12 +1063,12 @@ static abuf_t *buffer_get_frame(rtsp_conn_info *conn) {
int64_t lt = conn->first_packet_time_to_play - local_time_now;
if (lt < 150000000) {
if (lt < 130000000) {
debug(1, "Connection %d: Short lead time for first frame %" PRId64 ": %f seconds. Flushing 0.5 seconds",
conn->connection_number, conn->first_packet_timestamp, lt * 0.000000001);
do_flush(conn->first_packet_timestamp + 5 * 4410, conn);
} else {
debug(1, "Connection %d: Lead time for first frame %" PRId64 ": %f seconds.",
debug(2, "Connection %d: Lead time for first frame %" PRId64 ": %f seconds.",
conn->connection_number, conn->first_packet_timestamp, lt * 0.000000001);
}
/*
+1 -1
View File
@@ -148,7 +148,7 @@ int ptp_shm_interface_close() {
}
void ptp_send_control_message_string(const char *msg) {
debug(1, "Send control message to NQPTP: \"%s\"", msg);
debug(2, "Send control message to NQPTP: \"%s\"", msg);
int s;
unsigned short port = htons(NQPTP_CONTROL_PORT);
struct sockaddr_in server;