diff --git a/rtp.c b/rtp.c index ecf614e2..a4284433 100644 --- a/rtp.c +++ b/rtp.c @@ -361,9 +361,8 @@ void *rtp_timing_sender(void *arg) { if (sendto(conn->timing_socket, &req, sizeof(req), 0, (struct sockaddr *)&conn->rtp_client_timing_socket, msgsize) == -1) { char em[1024]; - strerror_r(errno,em,sizeof(em)); - debug(1,"Error %d using send-to to the timing socket: \"%s\".",errno,em); - + strerror_r(errno, em, sizeof(em)); + debug(1, "Error %d using send-to to the timing socket: \"%s\".", errno, em); } request_number++; if (request_number <= 4) @@ -814,8 +813,8 @@ void rtp_request_resend(seq_t first, uint32_t count, rtsp_conn_info *conn) { if (sendto(conn->audio_socket, req, sizeof(req), 0, (struct sockaddr *)&conn->rtp_client_control_socket, msgsize) == -1) { char em[1024]; - strerror_r(errno,em,sizeof(em)); - debug(1,"Error %d using send-to to an audio socket: \"%s\".",errno,em); + strerror_r(errno, em, sizeof(em)); + debug(1, "Error %d using send-to to an audio socket: \"%s\".", errno, em); } } else { // if (!request_sent) { diff --git a/rtsp.c b/rtsp.c index 953018fc..6ef9e89b 100644 --- a/rtsp.c +++ b/rtsp.c @@ -551,7 +551,7 @@ static enum rtsp_read_request_response rtsp_read_request(rtsp_conn_info *conn, get_absolute_time_in_fp() + ((uint64_t)15 << 32); // i.e. fifteen seconds from now int warning_message_sent = 0; - const size_t max_read_chunk = 1024*1024/16; + const size_t max_read_chunk = 1024 * 1024 / 16; while (inbuf < msg_size) { // we are going to read the stream in chunks and time how long it takes to