Fix ALSA audio problem where threshold will not be reset because

commit 7462290 decreased the value of pcm_pos
This commit is contained in:
ejurgensen 2014-09-19 22:18:07 +02:00
parent 27e7148405
commit ca3fada215

View File

@ -211,7 +211,7 @@ laudio_write(uint8_t *buf, uint64_t rtptime)
return;
}
else if ((pcm_status != LAUDIO_RUNNING) && (pcm_pos >= pcm_start_pos))
else if ((pcm_status != LAUDIO_RUNNING) && (pcm_pos + pcm_buf_threshold >= pcm_start_pos))
{
/* Kill threshold */
ret = laudio_set_start_threshold(0);