Changeset 5651


Ignore:
Timestamp:
Sep 19, 2017 10:21:42 AM (7 years ago)
Author:
nanang
Message:

Fix #2042: Fixed SRTP error in sending video RTP after call hold and unhold.

Location:
pjproject/trunk/pjsip/src/pjsua-lib
Files:
2 edited

Legend:

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

    r5273 r5651  
    513513 
    514514        if ((call_med->dir & PJMEDIA_DIR_ENCODING) && 
    515             (pjmedia_stream_get_stat(strm, &stat) == PJ_SUCCESS)) 
     515            (pjmedia_stream_get_stat(strm, &stat) == PJ_SUCCESS) && 
     516            stat.tx.pkt) 
    516517        { 
    517518            /* Save RTP timestamp & sequence, so when media session is 
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_vid.c

    r5603 r5651  
    11871187 
    11881188    if ((call_med->dir & PJMEDIA_DIR_ENCODING) && 
    1189         (pjmedia_vid_stream_get_stat(strm, &stat) == PJ_SUCCESS)) 
     1189        (pjmedia_vid_stream_get_stat(strm, &stat) == PJ_SUCCESS) && 
     1190        stat.tx.pkt) 
    11901191    { 
    11911192        /* Save RTP timestamp & sequence, so when media session is 
Note: See TracChangeset for help on using the changeset viewer.