mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
fix bug in msx264
fix segfault when sending a dtmf when call is not yet established. git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@201 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
7ec72d7f10
commit
9b0a0b67ce
2 changed files with 5 additions and 3 deletions
|
|
@ -457,7 +457,7 @@ static int nalusToFrame(DecData *d, MSQueue *naluq, bool_t *new_sps_pps){
|
|||
*dst++=1;
|
||||
*dst++=*src++;
|
||||
while(src<(im->b_wptr-3)){
|
||||
if (src[0]==0 && src[1]==0 && src[2]<=3){
|
||||
if (src[0]==0 && src[1]==0 && src[2]<3){
|
||||
*dst++=0;
|
||||
*dst++=0;
|
||||
*dst++=3;
|
||||
|
|
|
|||
|
|
@ -440,7 +440,9 @@ void ring_stop(RingStream *stream){
|
|||
|
||||
int audio_stream_send_dtmf(AudioStream *stream, char dtmf)
|
||||
{
|
||||
ms_filter_call_method(stream->rtpsend,MS_RTP_SEND_SEND_DTMF,&dtmf);
|
||||
ms_filter_call_method(stream->dtmfgen,MS_DTMF_GEN_PUT,&dtmf);
|
||||
if (stream->rtpsend)
|
||||
ms_filter_call_method(stream->rtpsend,MS_RTP_SEND_SEND_DTMF,&dtmf);
|
||||
if (stream->dtmfgen)
|
||||
ms_filter_call_method(stream->dtmfgen,MS_DTMF_GEN_PUT,&dtmf);
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue