Skip to content

Commit ce4b01d

Browse files
committed
Fix the compiled out code too
Has the same double-unlock issue as the previous commit. It also looks like rtp_free_msg() is gone and free() should be used instead.
1 parent dbcfc82 commit ce4b01d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

toxav/audio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ void ac_iterate(ACSession *ac)
151151
cs->last_packet_sampling_rate = rc;
152152
} else {
153153
LOGGER_WARNING(ac->log, "Failed to load packet values!");
154-
rtp_free_msg(msg);
154+
free(msg);
155+
pthread_mutex_lock(ac->queue_mutex);
155156
continue;
156157
}
157158

0 commit comments

Comments
 (0)