Ignore:
Timestamp:
Dec 28, 2016 3:40:07 AM (7 years ago)
Author:
nanang
Message:

Re #1900: More merged from trunk (r5512 mistakenly contains merged changes in third-party dir only).

Location:
pjproject/branches/projects/uwp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/uwp

  • pjproject/branches/projects/uwp/pjsip/src/pjsua-lib/pjsua_vid.c

    r5125 r5513  
    911911        /* Set rate control config from account setting */ 
    912912        si->rc_cfg = acc->cfg.vid_stream_rc_cfg; 
     913 
     914        /* Set send keyframe config from account setting */ 
     915        si->sk_cfg = acc->cfg.vid_stream_sk_cfg; 
    913916 
    914917#if defined(PJMEDIA_STREAM_ENABLE_KA) && PJMEDIA_STREAM_ENABLE_KA!=0 
     
    14501453 
    14511454    PJSUA_LOCK(); 
     1455 
    14521456    w = &pjsua_var.win[wid]; 
    1453     if (w->vp_rend == NULL) { 
    1454         /* Native window */ 
    1455         PJSUA_UNLOCK(); 
    1456         return PJ_EINVAL; 
    1457     } 
    1458  
    1459     s = pjmedia_vid_port_get_stream(w->vp_rend); 
     1457    s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 
    14601458    if (s == NULL) { 
    14611459        PJSUA_UNLOCK(); 
     
    14891487 
    14901488    PJSUA_LOCK(); 
     1489 
    14911490    w = &pjsua_var.win[wid]; 
    1492     if (w->vp_rend == NULL) { 
    1493         /* Native window */ 
    1494         PJSUA_UNLOCK(); 
    1495         return PJ_EINVAL; 
    1496     } 
    1497  
    1498     s = pjmedia_vid_port_get_stream(w->vp_rend); 
     1491    s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 
    14991492    if (s == NULL) { 
    15001493        PJSUA_UNLOCK(); 
     
    15231516 
    15241517    PJSUA_LOCK(); 
     1518 
    15251519    w = &pjsua_var.win[wid]; 
    1526     if (w->vp_rend == NULL) { 
    1527         /* Native window */ 
    1528         PJSUA_UNLOCK(); 
    1529         return PJ_EINVAL; 
    1530     } 
    1531  
    1532     s = pjmedia_vid_port_get_stream(w->vp_rend); 
     1520    s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 
    15331521    if (s == NULL) { 
    15341522        PJSUA_UNLOCK(); 
     
    15571545 
    15581546    PJSUA_LOCK(); 
     1547 
    15591548    w = &pjsua_var.win[wid]; 
    1560     if (w->vp_rend == NULL) { 
    1561         /* Native window */ 
    1562         PJSUA_UNLOCK(); 
    1563         return PJ_EINVAL; 
    1564     } 
    1565  
    1566     s = pjmedia_vid_port_get_stream(w->vp_rend); 
     1549    s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 
    15671550    if (s == NULL) { 
    15681551        PJSUA_UNLOCK(); 
     
    16171600 
    16181601    PJSUA_LOCK(); 
     1602 
    16191603    w = &pjsua_var.win[wid]; 
    1620     if (w->vp_rend == NULL) { 
    1621         /* Native window */ 
    1622         PJSUA_UNLOCK(); 
    1623         return PJ_EINVAL; 
    1624     } 
    1625  
    1626     s = pjmedia_vid_port_get_stream(w->vp_rend); 
     1604    s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 
    16271605    if (s == NULL) { 
    16281606        PJSUA_UNLOCK(); 
     
    18231801        call_med->tp = call_med->tp_orig = NULL; 
    18241802    } 
     1803    call->med_prov_cnt = 0; 
    18251804 
    18261805    return status; 
Note: See TracChangeset for help on using the changeset viewer.