FS-8315 #resolve [rtp_media_timeout not working]

This commit is contained in:
Anthony Minessale committed 2015-10-07 11:21:51 -05:00
1 parent 7f85faf21e
commit 3a24b972c0
2 files changed
+28 -8

No files matched your search

+4
View File
@@ -1138,6 +1138,10 @@ SWITCH_DECLARE(switch_status_t) switch_jb_get_packet(switch_jb_t *jb, switch_rtp
switch_mutex_lock(jb->mutex);
if (jb->complete_frames == 0) {
switch_goto_status(SWITCH_STATUS_BREAK, end);
}
if (jb->complete_frames < jb->frame_len) {
jb_debug(jb, 2, "BUFFERING %u/%u\n", jb->complete_frames , jb->frame_len);
switch_goto_status(SWITCH_STATUS_MORE_DATA, end);