From 9b15029705d045d6b1fcdfe2333eaa06dc08d778 Mon Sep 17 00:00:00 2001 From: Erik Olsen Date: Fri, 8 Mar 2024 18:52:59 +0000 Subject: [PATCH] media.cpp: prevent AudioMediaPlayer destructor from doubly removing conf port --- pjsip/src/pjsua2/media.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pjsip/src/pjsua2/media.cpp b/pjsip/src/pjsua2/media.cpp index 8c958cec1e..371663ca5a 100644 --- a/pjsip/src/pjsua2/media.cpp +++ b/pjsip/src/pjsua2/media.cpp @@ -275,6 +275,7 @@ AudioMediaPlayer::AudioMediaPlayer() AudioMediaPlayer::~AudioMediaPlayer() { if (playerId != PJSUA_INVALID_ID) { + id = PJSUA_INVALID_ID; unregisterMediaPort(); pjsua_player_destroy(playerId); }