Changeset 5407 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
- Timestamp:
- Aug 4, 2016 4:17:30 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r5324 r5407 1450 1450 1451 1451 PJSUA_LOCK(); 1452 1452 1453 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); 1454 s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 1460 1455 if (s == NULL) { 1461 1456 PJSUA_UNLOCK(); … … 1489 1484 1490 1485 PJSUA_LOCK(); 1486 1491 1487 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); 1488 s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 1499 1489 if (s == NULL) { 1500 1490 PJSUA_UNLOCK(); … … 1523 1513 1524 1514 PJSUA_LOCK(); 1515 1525 1516 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); 1517 s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 1533 1518 if (s == NULL) { 1534 1519 PJSUA_UNLOCK(); … … 1557 1542 1558 1543 PJSUA_LOCK(); 1544 1559 1545 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); 1546 s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 1567 1547 if (s == NULL) { 1568 1548 PJSUA_UNLOCK(); … … 1617 1597 1618 1598 PJSUA_LOCK(); 1599 1619 1600 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); 1601 s = pjmedia_vid_port_get_stream(w->vp_rend? w->vp_rend: w->vp_cap); 1627 1602 if (s == NULL) { 1628 1603 PJSUA_UNLOCK();
Note: See TracChangeset
for help on using the changeset viewer.