Skip to content

Commit dbcfc82

Browse files
committed
Fix a double-unlocking mutex
Fixes #1694 Thanks to @ryancaicse for the pointer!
1 parent cfb0aa8 commit dbcfc82

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

toxav/audio.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ void ac_iterate(ACSession *ac)
170170
if (!reconfigure_audio_decoder(ac, ac->lp_sampling_rate, ac->lp_channel_count)) {
171171
LOGGER_WARNING(ac->log, "Failed to reconfigure decoder!");
172172
free(msg);
173+
pthread_mutex_lock(ac->queue_mutex);
173174
continue;
174175
}
175176

0 commit comments

Comments
 (0)