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/pjmedia/src/pjmedia/event.c

    r3666 r3778  
    7373                                             pjmedia_event_subscription *esub) 
    7474{ 
     75    char epub_name[5]; 
     76 
    7577    PJ_ASSERT_RETURN(epub && esub && esub->cb, PJ_EINVAL); 
    7678    /* Must not currently subscribe to anything */ 
    7779    PJ_ASSERT_RETURN(esub->subscribe_to == NULL, PJ_EINVALIDOP); 
     80 
     81    TRACE_((THIS_FILE, "Subscription to publisher %s", 
     82                       pjmedia_fourcc_name(epub->sig, epub_name))); 
    7883 
    7984    pj_list_push_back(&epub->subscription_list, esub); 
     
    8590{ 
    8691    PJ_ASSERT_RETURN(esub, PJ_EINVAL); 
     92 
    8793    if (esub->subscribe_to) { 
     94        char epub_name[5]; 
     95        TRACE_((THIS_FILE, "Unsubscription to publisher %s", 
     96                           pjmedia_fourcc_name(esub->subscribe_to->sig, 
     97                                               epub_name))); 
     98 
    8899        PJ_ASSERT_RETURN( 
    89100            pj_list_find_node(&esub->subscribe_to->subscription_list, 
Note: See TracChangeset for help on using the changeset viewer.