Skip to content

Commit

Permalink
audiobridge: fix boolean setting for the first packet received
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Nov 20, 2023
1 parent d2b829b commit 053497e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/janus_audiobridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -8242,7 +8242,6 @@ static void *janus_audiobridge_participant_thread(void *data) {
if(ret == JITTER_BUFFER_OK) {
bpkt = (janus_audiobridge_buffer_packet *)jbp.data;
janus_mutex_unlock(&participant->qmutex);
first = FALSE;
locked = FALSE;
rtp = (janus_rtp_header *)bpkt->buffer;
/* If this is Opus, check if there's a packet gap we should fix with FEC */
Expand All @@ -8253,6 +8252,7 @@ static void *janus_audiobridge_participant_thread(void *data) {
use_fec = TRUE;
}
}
first = FALSE;
if(!g_atomic_int_compare_and_exchange(&participant->decoding, 0, 1)) {
/* This means we're cleaning up, so don't try to decode */
janus_audiobridge_buffer_packet_destroy(bpkt);
Expand Down

0 comments on commit 053497e

Please sign in to comment.