warning-free compile (prepare archiving) - release

This commit is contained in:
Philippe G
2020-08-12 16:31:47 -07:00
parent c5d871f5ee
commit bcb087f9ee
10 changed files with 92 additions and 68 deletions

View File

@@ -158,8 +158,12 @@ static void buffer_reset(abuf_t *audio_buffer);
static void buffer_release(abuf_t *audio_buffer);
static void buffer_reset(abuf_t *audio_buffer);
static void buffer_push_packet(rtp_t *ctx);
static bool rtp_request_resend(rtp_t *ctx, seq_t first, seq_t last);
static bool rtp_request_resend(rtp_t *ctx, seq_t first, seq_t last);
static bool rtp_request_timing(rtp_t *ctx);
static int seq_order(seq_t a, seq_t b);
#ifdef WIN32
static void *rtp_thread_func(void *arg);
#else
static void rtp_thread_func(void *arg);
#endif
@@ -565,7 +569,11 @@ static void buffer_push_packet(rtp_t *ctx) {
}
}
/*---------------------------------------------------------------------------*/
#ifdef WIN32
static void *rtp_thread_func(void *arg) {
#else
static void rtp_thread_func(void *arg) {
#endif
@@ -620,8 +628,9 @@ static void *rtp_thread_func(void *arg) {
unsigned rtptime;
// re-sent packet
case 0x56: {
pktp += 4;
case 0x56: {
pktp += 4;
plen -= 4;
}
// fall through
@@ -695,7 +704,6 @@ static void *rtp_thread_func(void *arg) {
break;
}
// NTP timing packet
case 0x53: {
@@ -712,8 +720,8 @@ static void *rtp_thread_func(void *arg) {
}
/*
The expected elapsed remote time should be exactly the same as
elapsed local time between the two request, corrected by the
elapsed local time between the two request, corrected by the
drifting
u64_t expected = ctx->timing.remote + MS2NTP(reference - ctx->timing.local);
*/
@@ -740,9 +748,9 @@ static void *rtp_thread_func(void *arg) {
free(packet);
LOG_INFO("[%p]: terminating", ctx);
#ifndef WIN32
xTaskNotifyGive(ctx->joiner);
#ifndef WIN32
xTaskNotifyGive(ctx->joiner);
vTaskSuspend(NULL);
#else
return NULL;
#endif