diff --git a/components/raop/rtp.c b/components/raop/rtp.c index da97f59c..7c02e5ce 100644 --- a/components/raop/rtp.c +++ b/components/raop/rtp.c @@ -201,7 +201,7 @@ rtp_resp_t rtp_init(struct in_addr host, int latency, char *aeskey, char *aesiv, rtp_resp_t resp = { 0, 0, 0, NULL }; if (!ctx) return resp; - + ctx->host = host; ctx->decrypt = false; ctx->cmd_cb = cmd_cb; @@ -263,7 +263,7 @@ rtp_resp_t rtp_init(struct in_addr host, int latency, char *aeskey, char *aesiv, #ifdef WIN32 pthread_create(&ctx->rtp_thread, NULL, rtp_thread_func, (void *) ctx); #else - xTaskCreate((TaskFunction_t) rtp_thread_func, "RTP_thread", 4096, ctx, CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT , &ctx->rtp_thread); + xTaskCreate((TaskFunction_t) rtp_thread_func, "RTP_thread", 4096, ctx, CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT + 1 , &ctx->rtp_thread); #endif } else { rtp_end(ctx); @@ -375,7 +375,7 @@ static void alac_decode(rtp_t *ctx, s16_t *dest, char *buf, int len, int *outsiz unsigned char iv[16]; int aeslen; assert(len<=MAX_PACKET); - + if (ctx->decrypt) { aeslen = len & ~0xf; memcpy(iv, ctx->aesiv, sizeof(iv)); @@ -526,7 +526,7 @@ static void buffer_push_packet(rtp_t *ctx) { rtp_request_resend(ctx, ctx->ab_read + i, ctx->ab_read + i); frame->last_resend = now; } - } + } } diff --git a/components/squeezelite/output.c b/components/squeezelite/output.c index eead0081..f41a032b 100644 --- a/components/squeezelite/output.c +++ b/components/squeezelite/output.c @@ -345,7 +345,7 @@ void output_init_common(log_level level, const char *device, unsigned output_buf unsigned i; loglevel = level; - + output_buf_size = output_buf_size - (output_buf_size % BYTES_PER_FRAME); output.init_size = output_buf_size; LOG_DEBUG("outputbuf size: %u", output_buf_size);