Fix #126
This commit is contained in:
parent
fa6a7e92d2
commit
70858ad2e5
|
@ -378,6 +378,8 @@ impl Stream for SamplesStream {
|
||||||
self.max_frames_in_buffer - padding
|
self.max_frames_in_buffer - padding
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if frames_available == 0 { return Poll::NotReady; }
|
||||||
|
|
||||||
// Obtaining a pointer to the buffer.
|
// Obtaining a pointer to the buffer.
|
||||||
let (buffer_data, buffer_len) = {
|
let (buffer_data, buffer_len) = {
|
||||||
let mut buffer: *mut winapi::BYTE = mem::uninitialized();
|
let mut buffer: *mut winapi::BYTE = mem::uninitialized();
|
||||||
|
|
Loading…
Reference in New Issue