uint64_t lateness = local_time_now - conn->first_packet_time_to_play;
lateness = (lateness * 1000000) >> 32; // microseconds
debug(
- 1,
+ 3,
"First packet is %" PRIu64 " microseconds late! Flushing 0.5 seconds",lateness);
do_flush(conn->first_packet_timestamp + 5 * 4410,
conn);
if (local_time_now > conn->first_packet_time_to_play) {
uint64_t lateness = local_time_now - conn->first_packet_time_to_play;
lateness = (lateness * 1000000) >> 32; // microseconds
- debug(1,"Gone past starting time by %" PRIu64 " microseconds.", lateness);
+ debug(3,"Gone past starting time by %" PRIu64 " microseconds.", lateness);
have_sent_prefiller_silence = 1;
conn->ab_buffering = 0;
debug(3, "Output bit depth is %d.", output_bit_depth);
if (conn->input_bit_depth > output_bit_depth) {
- debug(1, "Dithering will be enabled because the input bit depth is greater than the output bit "
+ debug(3, "Dithering will be enabled because the input bit depth is greater than the output bit "
"depth");
}
if (conn->fix_volume != 0x10000) {
- debug(1, "Dithering will be enabled because the output volume is being altered in software");
+ debug(3, "Dithering will be enabled because the output volume is being altered in software");
}
// we need an intermediate "transition" buffer
void rtp_audio_receiver_cleanup_handler(void *arg) {
debug(3, "Audio Receiver Cleanup.");
rtsp_conn_info *conn = (rtsp_conn_info *)arg;
- debug(1, "shutdown audio socket.");
+ debug(3, "shutdown audio socket.");
shutdown(conn->audio_socket, SHUT_RDWR);
- debug(1, "close audio socket.");
+ debug(3, "close audio socket.");
close(conn->audio_socket);
debug(3, "Audio Receiver Cleanup Successful.");
void rtp_control_handler_cleanup_handler(void *arg) {
debug(3, "Control Receiver Cleanup.");
rtsp_conn_info *conn = (rtsp_conn_info *)arg;
- debug(1, "shutdown control socket.");
+ debug(3, "shutdown control socket.");
shutdown(conn->control_socket, SHUT_RDWR);
- debug(1, "close control socket.");
+ debug(3, "close control socket.");
close(conn->control_socket);
debug(3, "Control Receiver Cleanup Successful.");
}
rtsp_conn_info *conn = (rtsp_conn_info *)arg;
pthread_cancel(conn->timer_requester);
pthread_join(conn->timer_requester, NULL);
- debug(1, "shutdown timing socket.");
+ debug(3, "shutdown timing socket.");
shutdown(conn->timing_socket, SHUT_RDWR);
- debug(1, "close timing socket.");
+ debug(3, "close timing socket.");
close(conn->timing_socket);
debug(3, "Timing Receiver Cleanup Successful.");
}
continue;
char errorstring[1024];
strerror_r(errno, (char *)errorstring, sizeof(errorstring));
- debug(1, "rtsp_read_request_response_read_error %d: \"%s\".", errno, (char *)errorstring);
+ debug(1, "Connection %d: rtsp_read_request_response_read_error %d: \"%s\".", conn->connection_number, errno, (char *)errorstring);
reply = rtsp_read_request_response_read_error;
goto shutdown;
}
}
}
if (method_selected == 0) {
- debug(1, "Connection %d: Unrecognised and unhandled rtsp request \"%s\".",
+ debug(3, "Connection %d: Unrecognised and unhandled rtsp request \"%s\".",
conn->connection_number, req->method);
int y = req->contentlength;
obfp += 2;
};
*obfp = 0;
- debug(1, "Content: \"%s\".", obf);
+ debug(3, "Content: \"%s\".", obf);
}
}
}