Skip to content

Commit

Permalink
aur: lock aubuf_mtx as short as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Jan 9, 2024
1 parent f919853 commit 26136d6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/aureceiver.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,7 @@ static int aurecv_push_aubuf(struct audio_recv *ar, const struct auframe *af)
uint64_t bpms;

if (!ar->aubuf) {
mtx_lock(ar->aubuf_mtx);
err = aurecv_alloc_aubuf(ar, af);
mtx_unlock(ar->aubuf_mtx);
if (err)
return err;
}
Expand Down

0 comments on commit 26136d6

Please sign in to comment.