Ignore:
Timestamp:
Feb 13, 2013 8:20:33 AM (11 years ago)
Author:
nanang
Message:

Re #1568: (PJSIP 1.x) No need to restart media when remote RTP address changed but ICE transport is running.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/pjmedia/include/pjmedia/transport.h

    r3553 r4346  
    534534 * 
    535535 * @param tp        The transport. 
    536  * @param info      Media socket info to be initialized. 
     536 * @param info      Media transport info to be initialized. 
    537537 * 
    538538 * @return          PJ_SUCCESS on success. 
     
    545545     
    546546    return PJ_ENOTSUP; 
     547} 
     548 
     549 
     550/** 
     551 * Utility API to get transport type specific info from the specified media 
     552 * transport info. 
     553 *  
     554 * @param info      Media transport info. 
     555 * @param type      Media transport type. 
     556 * 
     557 * @return          Pointer to media transport specific info, or NULL if 
     558 *                  specific info for the transport type is not found. 
     559 */ 
     560PJ_INLINE(void*) pjmedia_transport_info_get_spc_info( 
     561                                                pjmedia_transport_info *info, 
     562                                                pjmedia_transport_type type) 
     563{ 
     564    unsigned i; 
     565    for (i = 0; i < info->specific_info_cnt; ++i) { 
     566        if (info->spc_info[i].type == type) 
     567            return (void*)info->spc_info[i].buffer; 
     568    } 
     569    return NULL; 
    547570} 
    548571 
Note: See TracChangeset for help on using the changeset viewer.