]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4305: --resolve When libvlc is unable to decode the audio fast enough for the...
authorWilliam King <william.king@quentustech.com>
Sun, 23 Sep 2012 01:53:27 +0000 (18:53 -0700)
committerWilliam King <william.king@quentustech.com>
Sun, 23 Sep 2012 01:53:27 +0000 (18:53 -0700)
src/mod/formats/mod_vlc/mod_vlc.c

index 592acb1ff05aabef07abd3e26287416e29f18b57..d5b5ec336dd870d668c60335e7dbe806a165f10c 100644 (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)