Ignore:
Timestamp:
Jun 4, 2010 1:41:34 PM (14 years ago)
Author:
nanang
Message:

Re #668:

  • Fixed process_answer() of SDP negotiation, when no common format in a media, instead of returning error, it should just deactivate the media (offer & answer) and continue negotiating next media.
  • Generalized the way of deactivating media: set port to 0 and remove all attributes.
  • Added new API pjmedia_sdp_media_clone_deactivate() to clone media and deactivate the newly cloned media.
  • Updated PJMEDIA SDP negotiation test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjmedia/src/pjmedia/sdp_cmp.c

    r2394 r3198  
    184184        return PJMEDIA_SDP_ETPORTNOTEQUAL; 
    185185 
     186    /* For zeroed port media, stop comparing here */ 
     187    if (sd1->desc.port == 0) 
     188        return PJ_SUCCESS; 
     189 
    186190    /* Compare number of formats. */ 
    187191    if (sd1->desc.fmt_count != sd2->desc.fmt_count) 
Note: See TracChangeset for help on using the changeset viewer.