Ignore:
Timestamp:
Jan 28, 2020 2:42:42 AM (4 years ago)
Author:
nanang
Message:

Misc (re #2210): Get rid of annoying persistent log lines due to video conference connection between active capturer and stopped/hidden renderer (thanks to Dmytrii Gonchar for the feedback).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r6117 r6138  
    668668            } 
    669669 
     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 
    670677            /* Done */ 
    671678            *id = wid; 
     
    821828 
    822829        /* 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) { 
    824831            status = pjsua_vid_conf_connect(w->cap_slot, w->rend_slot, NULL); 
    825832            if (status != PJ_SUCCESS) 
     
    14451452                            &enabled); 
    14461453        } 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            } 
    14471460            status = pjmedia_vid_port_stop(w->vp_rend); 
    14481461        } 
Note: See TracChangeset for help on using the changeset viewer.