We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3be8e7 commit a44ebb6Copy full SHA for a44ebb6
src/plugins/janus_audiobridge.c
@@ -1885,9 +1885,11 @@ static void janus_audiobridge_participant_clear_inbuf(janus_audiobridge_particip
1885
1886
static void janus_audiobridge_participant_clear_outbuf(janus_audiobridge_participant *participant) {
1887
while(participant->outbuf && g_async_queue_length(participant->outbuf) > 0) {
1888
- janus_audiobridge_rtp_relay_packet *pkt = g_async_queue_pop(participant->outbuf);
1889
- g_free(pkt->data);
1890
- g_free(pkt);
+ janus_audiobridge_rtp_relay_packet *pkt = g_async_queue_try_pop(participant->outbuf);
+ if(pkt) {
+ g_free(pkt->data);
1891
+ g_free(pkt);
1892
+ }
1893
}
1894
1895
0 commit comments