From dc8a0ee64dfa6bc6c3c63f88a5f60c68586b331d Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 24 Jun 2026 11:05:27 -0400 Subject: [PATCH] MT#55283 annotate nonull args Change-Id: I1f9c10926e300689ac4f6be1aad2f78498deb404 --- daemon/codec.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/daemon/codec.c b/daemon/codec.c index 87169eac4..e59c1c204 100644 --- a/daemon/codec.c +++ b/daemon/codec.c @@ -2072,22 +2072,24 @@ void mqtt_timer_start(struct mqtt_timer **mqtp, call_t *call, struct call_media // master lock held in W +__attribute__((nonnull(1))) static void codec_timer_stop(struct codec_timer **ctp) { - if (!ctp) - return; obj_release(*ctp); } + // master lock held in W +__attribute__((nonnull(1))) void rtcp_timer_stop(struct rtcp_timer **rtp) { codec_timer_stop((struct codec_timer **) rtp); } + +__attribute__((nonnull(1))) void mqtt_timer_stop(struct mqtt_timer **mqtp) { codec_timer_stop((struct codec_timer **) mqtp); } - // call must be locked in R struct codec_handler *codec_handler_get(struct call_media *m, int payload_type, struct call_media *sink, struct sink_handler *sh) @@ -3500,9 +3502,13 @@ static void dtx_packet_free(struct dtx_packet *dtxp) { ssrc_entry_release(dtxp->input_handler); g_free(dtxp); } + +__attribute__((nonnull(1))) static void delay_buffer_stop(struct delay_buffer **pcmbp) { codec_timer_stop((struct codec_timer **) pcmbp); } + +__attribute__((nonnull(1))) static void dtx_buffer_stop(struct dtx_buffer **dtxbp) { codec_timer_stop((struct codec_timer **) dtxbp); }