Skip to content

Commit

Permalink
x265 cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Mar 16, 2024
1 parent 85351f6 commit c8c3a45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions toxav/toxav.c
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,11 @@ void toxav_kill(ToxAV *av)

pthread_mutex_lock(av->mutex);

#ifdef HAVE_H265_ENCODER
// HINT: to prevent leaks, cleanup x265
x265_cleanup();
#endif

// unregister callbacks
for (uint8_t i = PACKET_ID_RANGE_LOSSY_AV_START; i <= PACKET_ID_RANGE_LOSSY_AV_END; ++i) {
tox_callback_friend_lossy_packet_per_pktid(av->tox, nullptr, i);
Expand Down

0 comments on commit c8c3a45

Please sign in to comment.