From 4f817aea4c258eb47aaf2b4c49f7dd4838349c17 Mon Sep 17 00:00:00 2001 From: Moises Silva Date: Wed, 20 Oct 2010 10:59:54 -0400 Subject: [PATCH] mod_sangoma_codec: more --- src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c b/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c index 84a4cdffc9..e2a1193db2 100644 --- a/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c +++ b/src/mod/codecs/mod_sangoma_codec/mod_sangoma_codec.c @@ -408,8 +408,8 @@ static switch_status_t switch_sangoma_encode(switch_codec_t *codec, switch_codec * whether the buffer passed in by the core (encoded_data) will be big enough */ switch_frame_t ulaw_frame; switch_frame_t encoded_frame; - switch_status_t sres; - switch_time_t now_time, difftime; + switch_status_t sres = SWITCH_STATUS_FALSE; + switch_time_t now_time = 0, difftime = 0; switch_time_t func_start_time, func_end_time; unsigned char ebuf_ulaw[decoded_data_len / 2]; short *dbuf_linear; @@ -596,7 +596,7 @@ static switch_status_t switch_sangoma_decode(switch_codec_t *codec, /* codec ses * whether the buffer passed in by the core will be enough */ switch_frame_t encoded_frame; switch_frame_t ulaw_frame; - switch_status_t sres = 0; + switch_status_t sres = SWITCH_STATUS_FALSE; switch_time_t now_time = 0, difftime = 0; switch_time_t func_start_time = 0, func_end_time = 0; short *dbuf_linear;