From: Anthony Minessale Date: Fri, 4 Sep 2009 22:18:11 +0000 (+0000) Subject: missing reset causing the same timestamp forever on perfect storm of conditions invol... X-Git-Tag: v1.0.6~1939 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72d3c4cbda6343076625641c20d3c61ece5ccea7;p=thirdparty%2Ffreeswitch.git missing reset causing the same timestamp forever on perfect storm of conditions involving transcoding and ptime combo (gotta love it) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14771 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 5688a55218..cce81886cc 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -924,8 +924,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_write_frame(switch_core_sess enc_frame = &session->raw_write_frame; session->raw_write_frame.rate = session->write_impl.actual_samples_per_second; session->enc_write_frame.datalen = session->enc_write_frame.buflen; + session->enc_write_frame.timestamp = 0; - if (frame->codec && frame->codec->implementation && switch_core_codec_ready(frame->codec)) { rate = frame->codec->implementation->actual_samples_per_second;