Changeset 3940


Ignore:
Timestamp:
Jan 11, 2012 5:30:55 AM (7 years ago)
Author:
nanang
Message:

Fix #1444: always connect video capture port to video tee, even when the capture port has native preview, as a capture port can be used simultaneously by multiple streams (not only used by non-native preview renderer).

File:
1 edited

Legend:

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

    r3925 r3940  
    539539            goto on_error; 
    540540 
     541        /* Connect capturer to the video tee */ 
     542        status = pjmedia_vid_port_connect(w->vp_cap, w->tee, PJ_FALSE); 
     543        if (status != PJ_SUCCESS) 
     544            goto on_error; 
     545 
    541546        /* If device supports native preview, enable it */ 
    542547        if (w->is_native) { 
     
    580585        if (w->type == PJSUA_WND_TYPE_PREVIEW) { 
    581586            pjmedia_port *rend_port; 
    582  
    583             status = pjmedia_vid_port_connect(w->vp_cap, w->tee, PJ_FALSE); 
    584             if (status != PJ_SUCCESS) 
    585                 goto on_error; 
    586587 
    587588            rend_port = pjmedia_vid_port_get_passive_port(w->vp_rend); 
Note: See TracChangeset for help on using the changeset viewer.