Ignore:
Timestamp:
Sep 15, 2007 8:55:00 AM (17 years ago)
Author:
bennylp
Message:

Implemented ticket #373: Packet loss simulation in PJMEDIA ICE transport

File:
1 edited

Legend:

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

    r1417 r1436  
    700700    struct transport_udp *udp = (struct transport_udp*)tp; 
    701701 
    702     PJ_ASSERT_RETURN(tp &&  
    703                      (dir==PJMEDIA_DIR_ENCODING||dir==PJMEDIA_DIR_DECODING) && 
    704                      pct_lost <= 100, PJ_EINVAL); 
    705  
    706     if (dir == PJMEDIA_DIR_ENCODING) 
     702    PJ_ASSERT_RETURN(tp && pct_lost <= 100, PJ_EINVAL); 
     703 
     704    if (dir & PJMEDIA_DIR_ENCODING) 
    707705        udp->tx_drop_pct = pct_lost; 
    708     else if (dir == PJMEDIA_DIR_DECODING) 
     706     
     707    if (dir & PJMEDIA_DIR_DECODING) 
    709708        udp->rx_drop_pct = pct_lost; 
    710     else 
    711         return PJ_EINVAL; 
    712709 
    713710    return PJ_SUCCESS; 
Note: See TracChangeset for help on using the changeset viewer.