Changeset 6138 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Jan 28, 2020 2:42:42 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r6117 r6138 668 668 } 669 669 670 status = pjsua_vid_conf_connect(w->cap_slot, w->rend_slot, NULL); 671 if (status != PJ_SUCCESS) { 672 PJ_PERROR(4, (THIS_FILE, status, 673 "Ignored error on connecting video ports " 674 "on wid=%d", wid)); 675 } 676 670 677 /* Done */ 671 678 *id = wid; … … 821 828 822 829 /* For preview window, connect capturer & renderer (via conf) */ 823 if (w->type == PJSUA_WND_TYPE_PREVIEW ) {830 if (w->type == PJSUA_WND_TYPE_PREVIEW && show) { 824 831 status = pjsua_vid_conf_connect(w->cap_slot, w->rend_slot, NULL); 825 832 if (status != PJ_SUCCESS) … … 1445 1452 &enabled); 1446 1453 } else { 1454 status = pjsua_vid_conf_disconnect(w->cap_slot, w->rend_slot); 1455 if (status != PJ_SUCCESS) { 1456 PJ_PERROR(4, (THIS_FILE, status, 1457 "Ignored error on disconnecting video ports " 1458 "on stopping preview wid=%d", wid)); 1459 } 1447 1460 status = pjmedia_vid_port_stop(w->vp_rend); 1448 1461 }
Note: See TracChangeset
for help on using the changeset viewer.