clear timestamp when generating a fake empty frame to fix edge-case sending the same timestamp over and over

This commit is contained in:
Anthony Minessale 2011-03-02 20:29:47 -06:00
parent 11451c1056
commit 08496cd7eb
1 changed files with 2 additions and 0 deletions

View File

@ -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;