From 08496cd7eb98ff08e67f12d9d75d5f90f92eeeaa Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 2 Mar 2011 20:29:47 -0600 Subject: [PATCH] clear timestamp when generating a fake empty frame to fix edge-case sending the same timestamp over and over --- src/switch_core_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/switch_core_io.c b/src/switch_core_io.c index 4e1c7075b5..14cec65808 100644 --- a/src/switch_core_io.c +++ b/src/switch_core_io.c @@ -310,6 +310,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_frame(switch_core_sessi } else { memset(session->raw_read_frame.data, 255, read_frame->codec->implementation->decoded_bytes_per_packet); } + + session->raw_read_frame.timestamp = 0; session->raw_read_frame.datalen = read_frame->codec->implementation->decoded_bytes_per_packet; session->raw_read_frame.samples = session->raw_read_frame.datalen / sizeof(int16_t); read_frame = &session->raw_read_frame;