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.

This commit is contained in:
William King 2012-09-22 18:53:27 -07:00
parent 9c97ae3ccc
commit 3439d1b3b4
1 changed files with 2 additions and 2 deletions

View File

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