Commit 9b0a0b67 authored by smorlat's avatar smorlat

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
parent 7ec72d7f
......@@ -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;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment