Retry to open alsa if handle is null

This commit is contained in:
badaix 2020-04-16 08:34:38 +02:00
parent 0e936d06fa
commit b27aee80e6

View file

@ -206,6 +206,8 @@ void AlsaPlayer::worker()
LOG(ERROR, LOG_TAG) << "Exception in initAlsa: " << e.what() << endl;
chronos::sleep(100);
}
if (handle_ == nullptr)
continue;
}
int wait_result = snd_pcm_wait(handle_, 100);