Skip to content

Commit

Permalink
aureceiver: fix mtx_unlock on discard
Browse files Browse the repository at this point in the history
fixes #2954
  • Loading branch information
sreimers committed Mar 12, 2024
1 parent 9a9be64 commit 92a2cf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/aureceiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void aurecv_receive(struct audio_recv *ar, const struct rtp_header *hdr,

if (discard) {
++ar->stats.n_discard;
return;
goto out;
}

/* TODO: what if lostc > 1 ?*/
Expand All @@ -351,6 +351,7 @@ void aurecv_receive(struct audio_recv *ar, const struct rtp_header *hdr,

(void)aurecv_stream_decode(ar, hdr, mb, 0, drop);

out:
mtx_unlock(ar->mtx);
}

Expand Down

0 comments on commit 92a2cf0

Please sign in to comment.