Ignore:
Timestamp:
Oct 3, 2011 5:23:59 AM (13 years ago)
Author:
nanang
Message:

Fix #1358:

  • Fixed wrong place of video capture & render event subscription initialization, causing it getting reinitted while being subscribed.
  • Moved capture/render event unsubscription to be after capture/render port stopped. Also restart the capturer (after being stopped for unsubsciption & stream detachment) only when the capturer is being used by other, e.g: stream or preview.
  • Fixed error handling in pjsua_call_reinvite(), call pjsip_dlg_dec_lock() only if dlg is successfully acquired.
  • Minor: added [un]subscribtion log to event.
File:
1 edited

Legend:

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

    r3777 r3778  
    13401340#endif 
    13411341 
    1342     pjmedia_event_subscription_init(&call_med->esub_rend, &call_media_on_event, 
    1343                                     call_med); 
    1344     pjmedia_event_subscription_init(&call_med->esub_cap, &call_media_on_event, 
    1345                                     call_med); 
    1346  
    13471342on_error: 
    13481343    if (status != PJ_SUCCESS && call_med->tp) { 
     
    14031398                call_med->strm.v.cap_dev = info.id; 
    14041399            } 
     1400 
     1401            /* Init event subscribtion */ 
     1402            pjmedia_event_subscription_init(&call_med->esub_rend, &call_media_on_event, 
     1403                                            call_med); 
     1404            pjmedia_event_subscription_init(&call_med->esub_cap, &call_media_on_event, 
     1405                                            call_med); 
    14051406        } 
    14061407#endif 
Note: See TracChangeset for help on using the changeset viewer.