mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 23:55:57 -05:00
[alsa] Really don't query snd_pcm_delay() during an underrun
This commit is contained in:
parent
e65361ba17
commit
ec43195633
@ -295,6 +295,9 @@ laudio_alsa_get_pos(void)
|
||||
if (pcm_last_error != 0)
|
||||
return pcm_pos;
|
||||
|
||||
if (snd_pcm_state(hdl) != SND_PCM_STATE_RUNNING)
|
||||
return pcm_pos;
|
||||
|
||||
ret = snd_pcm_delay(hdl, &delay);
|
||||
if (ret < 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user