From 3439d1b3b4f4b561f45eed1d67fc709ced1c107b Mon Sep 17 00:00:00 2001 From: William King Date: Sat, 22 Sep 2012 18:53:27 -0700 Subject: [PATCH] FS-4305: --resolve When libvlc is unable to decode the audio fast enough for the local stream player, use multiple very quick 1 sample chunks of silence to fill in while libvlc catches up. --- src/mod/formats/mod_vlc/mod_vlc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/formats/mod_vlc/mod_vlc.c b/src/mod/formats/mod_vlc/mod_vlc.c index 592acb1ff0..d5b5ec336d 100644 --- a/src/mod/formats/mod_vlc/mod_vlc.c +++ b/src/mod/formats/mod_vlc/mod_vlc.c @@ -275,8 +275,8 @@ static switch_status_t vlc_file_read(switch_file_handle_t *handle, void *data, s if (!read && (status == 5 || status == 6)) { return SWITCH_STATUS_FALSE; } else if (!read) { - read = 2000; - memset(data, 255, read); + read = 2; + memset(data, 0, read); } if (read)