- Timestamp:
- Oct 15, 2019 8:58:41 AM (5 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia/vid_stream.c
r6005 r6093 1342 1342 } else { 1343 1343 pjmedia_event_init(event, PJMEDIA_EVENT_FMT_CHANGED, 1344 &frame->timestamp, stream);1344 &frame->timestamp, &channel->port); 1345 1345 event->data.fmt_changed.dir = PJMEDIA_DIR_DECODING; 1346 1346 pj_memcpy(&event->data.fmt_changed.new_fmt, -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_media.c
r6085 r6093 1543 1543 if (call_med->strm.v.rdr_win_id != PJSUA_INVALID_ID) { 1544 1544 pjsua_vid_win *w = &pjsua_var.win[call_med->strm.v.rdr_win_id]; 1545 if (event-> src== w->vp_rend) {1545 if (event->epub == w->vp_rend) { 1546 1546 /* Renderer just changed format, reconnect stream */ 1547 1547 pjsua_vid_conf_disconnect(call_med->strm.v.strm_dec_slot, … … 1549 1549 pjsua_vid_conf_connect(call_med->strm.v.strm_dec_slot, 1550 1550 w->rend_slot, NULL); 1551 } 1552 } 1553 1554 if (call_med->strm.v.strm_dec_slot != PJSUA_INVALID_ID) { 1555 /* Stream decoder changed format, update all conf listeners 1556 * by reconnecting. 1557 */ 1558 pjsua_conf_port_id dec_pid = call_med->strm.v.strm_dec_slot; 1559 pjmedia_port *strm_dec; 1560 pjsua_vid_conf_port_info pi; 1561 unsigned i; 1562 1563 status = pjmedia_vid_stream_get_port(call_med->strm.v.stream, 1564 PJMEDIA_DIR_DECODING, 1565 &strm_dec); 1566 if (status != PJ_SUCCESS) 1567 break; 1568 1569 /* Verify that the publisher is the stream decoder */ 1570 if (event->epub != strm_dec) 1571 break; 1572 1573 status = pjsua_vid_conf_get_port_info(dec_pid, &pi); 1574 if (status != PJ_SUCCESS) 1575 break; 1576 1577 for (i = 0; i < pi.listener_cnt; i++) { 1578 pjsua_vid_conf_disconnect(dec_pid, pi.listeners[i]); 1579 pjsua_vid_conf_connect(dec_pid, pi.listeners[i], NULL); 1551 1580 } 1552 1581 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c
r5979 r6093 1132 1132 pjmedia_event_subscribe(NULL, &call_media_on_event, 1133 1133 call_med, w->vp_rend); 1134 pjmedia_event_subscribe(NULL, &call_media_on_event, 1135 call_med, media_port); 1134 1136 #endif 1135 1137
Note: See TracChangeset
for help on using the changeset viewer.