mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-06-13 14:33:09 -04:00
Merge branch 'fix-alsa-sink' into 'master'
alsa-sink: Failed to open the PCM device but the state has advanced See merge request pulseaudio/pulseaudio!866
This commit is contained in:
commit
d3c163505d
1 changed files with 9 additions and 1 deletions
|
|
@ -2005,8 +2005,16 @@ static void thread_func(void *userdata) {
|
||||||
if (work_done) {
|
if (work_done) {
|
||||||
|
|
||||||
if (u->first) {
|
if (u->first) {
|
||||||
|
int err;
|
||||||
|
|
||||||
pa_log_info("Starting playback.");
|
pa_log_info("Starting playback.");
|
||||||
snd_pcm_start(u->pcm_handle);
|
if ((err = snd_pcm_start(u->pcm_handle)) < 0) {
|
||||||
|
if ((err = try_recover(u, "snd_pcm_start", err)) < 0)
|
||||||
|
goto fail;
|
||||||
|
|
||||||
|
/* Recovery resets startup state; retry in next loop iteration. */
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef USE_SMOOTHER_2
|
#ifdef USE_SMOOTHER_2
|
||||||
pa_smoother_2_resume(u->smoother, pa_rtclock_now());
|
pa_smoother_2_resume(u->smoother, pa_rtclock_now());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue