conference bridge: wirte_port() the if condition has mistake which make PJMEDIA_PORT_MUTE case never run (#3311)

This commit is contained in:
jimying 2022-12-20 12:48:29 +08:00 committed by GitHub
parent d56d2ff50b
commit f3ed61e6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1718,7 +1718,7 @@ static pj_status_t write_port(pjmedia_conf *conf, struct conf_port *cport,
*frm_type = PJMEDIA_FRAME_TYPE_AUDIO;
/* Skip port if it is disabled */
if (cport->tx_setting != PJMEDIA_PORT_ENABLE) {
if (cport->tx_setting == PJMEDIA_PORT_DISABLE) {
cport->tx_level = 0;
*frm_type = PJMEDIA_FRAME_TYPE_NONE;
return PJ_SUCCESS;