Merge pull request #127 from Bobo1239/master

Fix #126
This commit is contained in:
tomaka 2016-08-19 22:11:17 +02:00 committed by GitHub
commit ba924f6582
1 changed files with 2 additions and 0 deletions

View File

@ -378,6 +378,8 @@ impl Stream for SamplesStream {
self.max_frames_in_buffer - padding
};
if frames_available == 0 { return Poll::NotReady; }
// Obtaining a pointer to the buffer.
let (buffer_data, buffer_len) = {
let mut buffer: *mut winapi::BYTE = mem::uninitialized();