pretty print

This commit is contained in:
Mike Brady
2018-01-20 16:53:02 +00:00
parent 5e3f82f765
commit c371aa59fd
2 changed files with 5 additions and 6 deletions
+4 -5
View File
@@ -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) {
+1 -1
View File
@@ -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