- Timestamp:
- Jul 15, 2011 7:27:05 AM (13 years ago)
- Location:
- pjproject/branches/projects/2.0-dev/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/projects/2.0-dev/pjsip/include/pjsua-lib/pjsua_internal.h
r3652 r3656 100 100 pjmedia_srtp_use rem_srtp_use; /**< Remote's SRTP usage policy. */ 101 101 102 pjmedia_event_subscription esub;/**< To subscribe to media events. */ 102 pjmedia_event_subscription esub_rend;/**< Subscribe renderer events. */ 103 pjmedia_event_subscription esub_cap;/**< Subscribe capture events. */ 103 104 } pjsua_call_media; 104 105 -
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_media.c
r3652 r3656 1427 1427 #endif 1428 1428 1429 pjmedia_event_subscription_init(&call_med->esub , &call_media_on_event,1429 pjmedia_event_subscription_init(&call_med->esub_rend, &call_media_on_event, 1430 1430 call_med); 1431 pjmedia_event_subscription_init(&call_med->esub_cap, &call_media_on_event, 1432 call_med); 1431 1433 1432 1434 return PJ_SUCCESS; -
pjproject/branches/projects/2.0-dev/pjsip/src/pjsua-lib/pjsua_vid.c
r3655 r3656 632 632 return status; 633 633 634 w = &pjsua_var.win[wid]; 635 634 636 /* Register to video events */ 635 637 pjmedia_event_subscribe( 636 638 pjmedia_vid_port_get_event_publisher(w->vp_rend), 637 &call_med->esub); 638 639 w = &pjsua_var.win[wid]; 639 &call_med->esub_rend); 640 640 641 641 /* Connect renderer to stream */ … … 680 680 681 681 w = &pjsua_var.win[wid]; 682 683 pjmedia_event_subscribe( 684 pjmedia_vid_port_get_event_publisher(w->vp_cap), 685 &call_med->esub_cap); 682 686 683 687 /* Connect stream to capturer (via video window tee) */ … … 769 773 return; 770 774 775 /* Unsubscribe events */ 776 pjmedia_event_unsubscribe(&call_med->esub_rend); 777 pjmedia_event_unsubscribe(&call_med->esub_cap); 778 771 779 if (call_med->strm.v.cap_win_id != PJSUA_INVALID_ID) { 772 780 pjmedia_port *media_port; … … 1355 1363 if (status != PJ_SUCCESS) 1356 1364 return status; 1365 1366 pjmedia_event_unsubscribe(&call_med->esub_cap); 1357 1367 1358 1368 /* = Detach stream port from the old capture device = */ … … 1392 1402 if (status != PJ_SUCCESS) 1393 1403 return status; 1404 1405 pjmedia_event_subscribe( 1406 pjmedia_vid_port_get_event_publisher(w->vp_rend), 1407 &call_med->esub_cap); 1394 1408 1395 1409 /* Start renderer */
Note: See TracChangeset
for help on using the changeset viewer.