Skip to content

Commit

Permalink
media.cpp: prevent AudioMediaPlayer destructor from doubly removing c…
Browse files Browse the repository at this point in the history
…onf port
  • Loading branch information
ecolsen7 committed Mar 9, 2024
1 parent 7eec09d commit 9b15029
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pjsip/src/pjsua2/media.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ AudioMediaPlayer::AudioMediaPlayer()
AudioMediaPlayer::~AudioMediaPlayer()
{
if (playerId != PJSUA_INVALID_ID) {
id = PJSUA_INVALID_ID;
unregisterMediaPort();
pjsua_player_destroy(playerId);
}
Expand Down

0 comments on commit 9b15029

Please sign in to comment.