mirror of
https://github.com/libretro/RetroArch
synced 2024-12-28 09:29:16 +00:00
Shouldn't write in non-blocking, if it blocks.
This commit is contained in:
parent
72390cd277
commit
db5462372c
2
rsound.c
2
rsound.c
@ -75,7 +75,7 @@ static ssize_t __rsd_write(void* data, const void* buf, size_t size)
|
||||
{
|
||||
rsd_t *rsd = data;
|
||||
|
||||
if ( rsd_delay_ms(rsd->rd) > rsd->latency && rsd->nonblock )
|
||||
if ( (rsd_delay_ms(rsd->rd) > rsd->latency || rsd_get_avail(rsd->rd) < size) && rsd->nonblock )
|
||||
return 0;
|
||||
|
||||
if ( size == 0 )
|
||||
|
Loading…
Reference in New Issue
Block a user