alsa: - if polling loop is timed out (paTimedOut) PaAlsaStream_WaitForFrames will not report any frames available
This commit is contained in:
parent
3e700ec6d2
commit
d031474d95
1 changed files with 2 additions and 0 deletions
|
|
@ -2987,6 +2987,8 @@ static PaError PaAlsaStream_WaitForFrames( PaAlsaStream *self, unsigned long *fr
|
|||
/* not else ! */
|
||||
if (timeouts >= 64) /* audio device not working, shall return error to notify waiters */
|
||||
{
|
||||
*framesAvail = 0; /* no frames available for processing */
|
||||
|
||||
PA_DEBUG(( "%s: poll timed out, returning error\n", __FUNCTION__, timeouts ));
|
||||
PA_ENSURE( paTimedOut );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue