Skip to content

Commit

Permalink
Continue if snd_pcm_start fails
Browse files Browse the repository at this point in the history
  • Loading branch information
badaix committed Dec 5, 2020
1 parent 296a2f4 commit 99f7626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/player/alsa_player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ void AlsaPlayer::initAlsa()
if (snd_pcm_state(handle_) == SND_PCM_STATE_PREPARED)
{
if ((err = snd_pcm_start(handle_)) < 0)
throw SnapException("Failed to start PCM: " + string(snd_strerror(err)));
LOG(DEBUG, LOG_TAG) << "Failed to start PCM: " << snd_strerror(err) << "\n";
}

if (ctl_ == nullptr)
Expand Down

0 comments on commit 99f7626

Please sign in to comment.