Changeset 5910


Ignore:
Timestamp:
Nov 21, 2018 8:39:45 AM (6 years ago)
Author:
nanang
Message:

Misc (re #2147): pjmedia_transport_media_stop() should not be called before pjmedia_stream_destroy(), otherwise RTCP BYE, DTMF 'End' flag, etc cannot be sent (thanks Lauri Vänskä for the report).

Location:
pjproject/trunk/pjsip-apps/src/samples
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/samples/streamutil.c

    r5908 r5910  
    832832 
    833833        tp = pjmedia_stream_get_transport(stream); 
    834         pjmedia_transport_media_stop(tp); 
    835834        pjmedia_stream_destroy(stream); 
    836835         
     836        pjmedia_transport_media_stop(tp); 
    837837        pjmedia_transport_close(tp); 
    838838    } 
  • pjproject/trunk/pjsip-apps/src/samples/vid_streamutil.c

    r5747 r5910  
    955955        pjmedia_vid_stream_destroy(stream); 
    956956         
     957        pjmedia_transport_media_stop(tp); 
    957958        pjmedia_transport_close(tp); 
    958959    } 
Note: See TracChangeset for help on using the changeset viewer.