Skip to content

Commit

Permalink
Do not destroy resamplers when hanging up
Browse files Browse the repository at this point in the history
  • Loading branch information
atoppi committed Nov 22, 2023
1 parent 812cc05 commit 36e54a6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/plugins/janus_audiobridge.c
Original file line number Diff line number Diff line change
Expand Up @@ -5924,12 +5924,6 @@ static void janus_audiobridge_hangup_media_internal(janus_plugin_session *handle
/* Make sure we're not using the encoder/decoder right now, we're going to destroy them */
while(!g_atomic_int_compare_and_exchange(&participant->encoding, 0, 1))
g_usleep(5000);
if(participant->upsampler)
speex_resampler_destroy(participant->upsampler);
participant->upsampler = NULL;
if(participant->downsampler)
speex_resampler_destroy(participant->downsampler);
participant->downsampler = NULL;
if(participant->encoder)
opus_encoder_destroy(participant->encoder);
participant->encoder = NULL;
Expand Down

0 comments on commit 36e54a6

Please sign in to comment.