Skip to content

Commit f4f3f43

Browse files
authored
Fix assertion in quitting pjsua app when AVI feature is disabled (in compile-time) but configured in pjsua app param. (#4036)
1 parent f5d890a commit f4f3f43

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pjsip-apps/src/pjsua/pjsua_app.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,11 @@ static pj_status_t app_init(void)
17181718
}
17191719
}
17201720
#else
1721+
for (i=0; i<app_config.avi_cnt; ++i) {
1722+
app_config.avi[i].dev_id = PJMEDIA_VID_INVALID_DEV;
1723+
app_config.avi[i].slot = PJSUA_INVALID_ID;
1724+
}
1725+
17211726
PJ_LOG(2,(THIS_FILE,
17221727
"Warning: --play-avi is ignored because AVI is disabled"));
17231728
#endif /* PJMEDIA_VIDEO_DEV_HAS_AVI */

0 commit comments

Comments
 (0)